mirror of
https://github.com/opensupports/opensupports.git
synced 2025-07-31 01:35:15 +02:00
fix staff1/2 change own perfile pic
This commit is contained in:
parent
1106cd89b8
commit
36cfb1bcbe
@ -59,7 +59,7 @@ class EditStaffController extends Controller {
|
||||
|
||||
if(!$staffId) {
|
||||
$this->staffInstance = Controller::getLoggedUser();
|
||||
} else if(Controller::isStaffLogged(3)) {
|
||||
} else if(Controller::isStaffLogged(3) || Controller::getLoggedUser()->id === $staffId) {
|
||||
$this->staffInstance = Staff::getDataStore($staffId, 'id');
|
||||
|
||||
if($this->staffInstance->isNull()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user