提交 52b739ea authored 作者: chengye's avatar chengye

调整管理员用户权限问题

上级 cc2b5675
......@@ -404,8 +404,16 @@ class Payment extends Base
public function payoa(){
$payment_id = Request::param('payment_id');
$user = Session::get('user');
dd($user);
$staff = Staff::get($user['user_id']);
if($user['is_admin'] == 1){
if($user['username'] == 'admin' || $user['username'] == 'gonnadmin'){
$staff = [];
} else {
$staff = Staff::get(['name'=>$user['name']]);
}
} else {
$staff = Staff::get($user['user_id']);
}
$this->assign('payment_id',$payment_id);
$this->assign('payee',$this->getGys($staff->email));
$this->assign('payOrg',$this->getFkInfo(2));
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论