This topic is locked

Security Permission

4/4/2010 1:32:44 PM
PHPRunner General questions
P
procheck author

Hi everyone. Just starting out and I have a question about setting up a static permissions logon. I can setup the admin user no problem and a specific user works fine. This works fine when I setup the specific user in a members table and add this user as a group. What I'm trying to understand is how to setup a generic group where a member can see and edit their own data but not have 100 groups for 100 members. So far when I setup a generic group and set the permissions(add, edit etc.) and I logon with the userid and password, it appears to accept the password but it doesn't display what I've set the group permissions to, it only displays what is in the default group. So if I remove the permissions in the default, I get a blank page in menu.php. This is probably discussed elsewhere but I have been unable to find it. Thanks in advance.
Al

Sergey Kornilov admin 4/4/2010

I guess your problem is that users are not assigned to generic group. Make sure GroupID field is populated properly for each user that you want to belong to this group.

P
procheck author 4/4/2010



I guess your problem is that users are not assigned to generic group. Make sure GroupID field is populated properly for each user that you want to belong to this group.


There's something I'm missing about how to go about that.

My table:
UserName Password

admin admin1

user1 pass1

user2 pass2
I setup the GroupID field as UserName and created a group called UserName. This is obviously wrong because it doesn't work.
If I add 3 user groups from the pick list called admin, user1, user2 then this works but that's not what I want.

Sergey Kornilov admin 4/4/2010

Add one more field i.e. GroupID or GroupName and use it as GroupID field on group permissions dialog. Populate this field with something like 'generic' for all users that belong to generic group.

P
procheck author 4/6/2010



Add one more field i.e. GroupID or GroupName and use it as GroupID field on group permissions dialog. Populate this field with something like 'generic' for all users that belong to generic group.


I was able to make it work. Thanks for the info.