Browse Source

登录添加权限信息

wzh 5 years ago
parent
commit
495f368ecf
1 changed files with 1 additions and 0 deletions
  1. 1 0
      api/application/controllers/Common.php

+ 1 - 0
api/application/controllers/Common.php

@@ -35,6 +35,7 @@ class Common extends CI_Controller {
                 'id' => $user['id'],
                 'role' => intval($user['role']),
                 'name' => $user['name'],
+                'privilege' => $user['privilege'],
                 'avatar' => empty($user['avatar']) ? '' : base_url($user['avatar'])
             );