feature: 按钮名称
This commit is contained in:
parent
4ead5dab34
commit
32848f79e8
|
|
@ -60,7 +60,7 @@ class CustomSchedule extends Backend
|
|||
|
||||
$res = [];
|
||||
|
||||
if (!$this->auth->isSuperAdmin()) {
|
||||
if (!$this->auth->check('oa/custom_schedule/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