This topic is locked

Changing Security Access Levels

4/12/2007 10:27:57 AM
PHPRunner General questions
P
powerchuck author

In my main table that has users I have created a field access_level. As people register they are initally assigned the default security settings level. But I would like the Administrator only, to be able to change that access level from default to some other setting as that person progresses.
How do I make the field access_level show as a field on the edit page but only for the Administrator and not for the other users?
I think if I could manipulate that field all would be ok, but I don't want individual users giving themselves Officer credentials, etc.

T
thesofa 4/12/2007

In step 3, Datasource tables, make a new view of the main table you use.

in step 5, make sure you have a list page, edit and any other pages for the administrator.

set the security levels to only allow the admin user to see this table, make sure you add a tick in the Create menu item for this table

In step 7, create a login page. In the advanced page set up the admin user.

Then press the user group permissions button.

Set up the GroupID field as `access_level` and create the groups by using the add group button.

Once you have set up each group, you can click on a group and set the access permissions for each page of each table or view in your project.

It is absolutely amazing!

HTH