Explorar el Código

登录添加权限信息

wzh hace 5 años
padre
commit
495f368ecf
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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'])
             );