Login     Sign up
User Role
Abhimanyu (@abhimanyusharma003)
Join date: Aug 12th 2010
Community posts: 124
View Profile
Send Message

I create new user role.
and do not allow this role to browse the page. (examlpe.com/browse)

give a user this permission and still it can browse it..!!

165 months ago
Dum Dum Gratis (@domgratis)
Join date: Aug 4th 2010
Community posts: 82
View Profile
Send Message

have you try to change browse module and add if (profile['roles'] == 4) {

} else { exit; }

profile is array of data from query
roles is field name
*4 is the roles you have created

165 months ago
Abhimanyu (@abhimanyusharma003)
Join date: Aug 12th 2010
Community posts: 124
View Profile
Send Message

I'm not able to get you ..
pls explain it little bit..
and
i have not modify the browser module..!!

165 months ago
Dum Dum Gratis (@domgratis)
Join date: Aug 4th 2010
Community posts: 82
View Profile
Send Message

hmmm...

the logic is like it
when someone go to browse modules check his/her roles by using :
if ($user['roles'] == {the roles you specify}) {
// This is where the user is the right user
} else {
// This is where the user is not the right user
exit;
}

165 months ago