feature: salary menu
This commit is contained in:
parent
137695c02a
commit
45172a0f6d
|
|
@ -78,7 +78,7 @@ class CustomDetail extends Backend
|
|||
|
||||
$res = [];
|
||||
|
||||
if (!$this->auth->isSuperAdmin()) {
|
||||
if (!$this->auth->check('salary/custom_detail/edit')) {
|
||||
$admins = Db::name('admin')->where('id', $this->auth->id)->field('id,nickname')->select();
|
||||
} else{
|
||||
$admins = Db::name('admin')->field('id,nickname')->select();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user