Fix report button showing if anonymous reporting is disabled
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
e068326c4b
commit
331f9bc915
@ -1022,9 +1022,7 @@ export default class Event extends EventMixin {
|
||||
}
|
||||
|
||||
get ableToReport(): boolean {
|
||||
return (
|
||||
this.config && (this.currentActor.id !== undefined || this.config.anonymous.reports.allowed)
|
||||
);
|
||||
return this.config && (this.currentActor.id != null || this.config.anonymous.reports.allowed);
|
||||
}
|
||||
|
||||
get actorForReport(): IActor | null {
|
||||
|
Loading…
Reference in New Issue
Block a user