0

Permissions for team members based on roles. Need advise.

I'm repairing an open source script which is lacking in the permissions and access to a redirect team edit page based on that team members role. I'm creating 4 more roles.. The current script does the following.. When a new joining member creates a team, it considers that person a team owner and "admin" and generates an additional playerID=PID. It authenticates by selecting the team ID and comparing it to their PID which allows access to the edit page via a redirect. I need to extend this to other roles.

29th Mar 2017, 1:01 PM
Grant B
Grant B - avatar
1 Respuesta
0
On your SQL Server, create tables with their ID, information (name, surname etc.), team and group(permissions group). Make your PHP check the group which this person is (owner/admin) and let it hide the "add player" tabs/options for non-owners. Owners can also transfer their ownership to another person then if your php validates that this other person also owner rights then everything should work out fine. Basically create groups and let the php check which team and group that person is to assign the appropriate permissions.
10th Apr 2017, 10:56 PM
Jean-louis du Plessis
Jean-louis du Plessis - avatar