Codeigniter-Ion-Auth-ACL
Codeigniter-Ion-Auth-ACL copied to clipboard
Question regarding Config & User-ID
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.