Sfoglia il codice sorgente

登录添加权限信息

wzh 5 anni fa
parent
commit
495f368ecf
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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'])
             );