Fixed privileges for some user jobs in API

This commit is contained in:
Marcin Kurczewski 2014-05-06 18:09:32 +02:00
parent 2e6687329b
commit 875eeaf4d4
2 changed files with 2 additions and 2 deletions

View file

@ -28,7 +28,7 @@ class EditUserAccessRankJob extends AbstractUserEditJob
public function requiresPrivilege() public function requiresPrivilege()
{ {
return new Privilege( return new Privilege(
Privilege::ChangeUserEmail, Privilege::ChangeUserAccessRank,
Access::getIdentity($this->user)); Access::getIdentity($this->user));
} }
} }

View file

@ -43,7 +43,7 @@ class EditUserEmailJob extends AbstractUserEditJob
public function requiresPrivilege() public function requiresPrivilege()
{ {
return new Privilege( return new Privilege(
Privilege::ChangeUserAccessRank, Privilege::ChangeUserEmail,
Access::getIdentity($this->user)); Access::getIdentity($this->user));
} }
} }