Fix report button showing if anonymous reporting is disabled
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
885ba8e5d9
commit
6917fa0ec5
@ -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