Commit da26ef9d by 朱继来

调整perm

parent f8795888
Showing with 2 additions and 0 deletions
...@@ -118,6 +118,8 @@ ...@@ -118,6 +118,8 @@
foreach ($role as $v) { foreach ($role as $v) {
$department = DB::table('t_role_perm')->where(['roleId' => $v, 'bid' => $bid])->first(); $department = DB::table('t_role_perm')->where(['roleId' => $v, 'bid' => $bid])->first();
if (!isset($department->name)) continue;
$user_role[] = in_array($department->name, array_keys(Config('perm_args.roles'))) ? array_get(Config('perm_args.roles'), $department->name) : 0; $user_role[] = in_array($department->name, array_keys(Config('perm_args.roles'))) ? array_get(Config('perm_args.roles'), $department->name) : 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment