Codeigniter-Ion-Auth-ACL icon indicating copy to clipboard operation
Codeigniter-Ion-Auth-ACL copied to clipboard

Question regarding Config & User-ID

Open chland opened this issue 6 years ago • 1 comments

While looking at the code I noticed some code in Ion_auth_acl.php that i don't really understand.

In the constructor of the Ion_auth_acl-class you're setting $this->user_id if no config is provided and i honestly don't understand why.

https://github.com/weblogics/Codeigniter-Ion-Auth-ACL/blob/master/libraries/Ion_auth_acl.php#L29-L35

I guess the "else" shouldn't be there and $this->user_id should always be set as it is used when $this->user_groups is filled.

chland avatar Jan 09 '18 12:01 chland