diff --git a/src/Api/Jobs/EditUserAccessRankJob.php b/src/Api/Jobs/EditUserAccessRankJob.php index 13596081..4f84769c 100644 --- a/src/Api/Jobs/EditUserAccessRankJob.php +++ b/src/Api/Jobs/EditUserAccessRankJob.php @@ -28,7 +28,7 @@ class EditUserAccessRankJob extends AbstractUserEditJob public function requiresPrivilege() { return new Privilege( - Privilege::ChangeUserEmail, + Privilege::ChangeUserAccessRank, Access::getIdentity($this->user)); } } diff --git a/src/Api/Jobs/EditUserEmailJob.php b/src/Api/Jobs/EditUserEmailJob.php index c9a69dea..a76ed275 100644 --- a/src/Api/Jobs/EditUserEmailJob.php +++ b/src/Api/Jobs/EditUserEmailJob.php @@ -43,7 +43,7 @@ class EditUserEmailJob extends AbstractUserEditJob public function requiresPrivilege() { return new Privilege( - Privilege::ChangeUserAccessRank, + Privilege::ChangeUserEmail, Access::getIdentity($this->user)); } }