Fixed privileges for some user jobs in API
This commit is contained in:
parent
2e6687329b
commit
875eeaf4d4
2 changed files with 2 additions and 2 deletions
|
@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue