-
Notifications
You must be signed in to change notification settings - Fork 235
5) Group Operations
Groups are most important part of Aauth
First you must know groups settings can be changed from Aauth config file (we recomend not to change)
'admin_group' => 'Admin'
is group name of admin
'default_group' => 'Default'
is for new users
'public_group' => 'Public'
for whom not logged in
In Aauth, Users can have more than one group.
Admin has all rights
lets look at functions
creates a group and returns new group id.
updates group using group_id
deletes group
adds member to a group. group_par can be group id or group name
get given user out of given group.
returns true if current user member of given group, orherwise false
returns true if current user is admin
Remember! you can change admin's group from Aauth config file
returns list of groups as an object
returns name of a group
returns id of group by taking group_par(id or name of group)
Aauth V2 Wiki created by emreakay.com