4/10/2012 7:28:28 AM
3016
Reputation
428
Total posts
Hi,
it is done automatically if you use MonoX admninistration to remove an user from role. If you have a need to do it in code and use MonoX SecurityUtility to check for users role then you need to clear the cache after adding/removing to/from role:
Roles.AddUserToRole(
"someUserName"
,
"someRoleName"
);
SecurityUtility.RemoveRoleIdFromCache(
"someUserName"
);
and the you can call SecurityUtility to check for the user role:
SecurityUtility.IsUserInRole(
"someUserName"
,
"someRoleNameOrId"
);
Regards.
Rating history (Content is rated 0.00 of 0 vote(s).)
Shows who have rated the content, and the rating score.