mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-11-22 13:02:39 +09:00
removed System\Service->staffHasPermissions()
it is just router for Staff\Service\hasPermission()
This commit is contained in:
1 parent
f8783690eb
commit
08524b0f99
4 files changed
+13
-28
No files matched your search
@@ -146,7 +146,8 @@ class Admin extends \Api_Abstract
|
||||
}
|
||||
|
||||
$f = isset($data['f']) ? $data['f'] : null;
|
||||
return $this->getService()->staffHasPermissions($this->getIdentity(), $data['mod'], $f);
|
||||
$service = $this->di['mod_service']('Staff');
|
||||
return $service->hasPermission($this->getIdentity(), $data['mod'], $f);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -360,12 +360,6 @@ class Service
|
||||
return $data;
|
||||
}
|
||||
|
||||
public function staffHasPermissions($identity, $module, $f = null)
|
||||
{
|
||||
$service = $this->di['mod_service']('staff');
|
||||
return $service->hasPermission($identity, $module, $f);
|
||||
}
|
||||
|
||||
public function getCurrentUrl()
|
||||
{
|
||||
$request = $this->di['request'];
|
||||
|
||||
Reference in new issue
Block a user