ridwanskaterock / cicool

Cicool is a multifunctional application that is used to facilitate your work in creating a system, CMS, E-Comerce and others
20 stars 13 forks source link

How can I get User group data ? #460

Open Kallal103 opened 3 years ago

Kallal103 commented 3 years ago

Hello, from the API , how can I get which user has which group access as an admin. Currently, in the API endpoints, there is no endpoint to find out which user belongs to which group? Please help me to find out the problem soon.

ridwanskaterock commented 3 years ago

Hi on API modules/api/controllers/User.php function login_post can you add this code

image

$decoded->groups = $this->aauth->get_user_groups($decoded->id);

image