diff --git a/client/src/app/site/users/components/user-list/user-list.component.ts b/client/src/app/site/users/components/user-list/user-list.component.ts index 2fd90a8c3..afb61c40d 100644 --- a/client/src/app/site/users/components/user-list/user-list.component.ts +++ b/client/src/app/site/users/components/user-list/user-list.component.ts @@ -428,10 +428,10 @@ export class UserListComponent extends BaseListViewComponent implement public setPresent(viewUser: ViewUser): void { viewUser.user.is_present = !viewUser.user.is_present; - if (this.operator.viewUser === viewUser) { - this.operator.setPresence(viewUser.user.is_present).catch(this.raiseError); - } else { + if (this.operator.hasPerms('users.can_manage')) { this.repo.update(viewUser.user, viewUser).catch(this.raiseError); + } else if (this.allowSelfSetPresent && this.operator.viewUser === viewUser) { + this.operator.setPresence(viewUser.user.is_present).catch(this.raiseError); } } }