how to handle multiple ADMIN roles in database
Posted: Mon Oct 24, 2011 3:15 am
Hi Steve,
I have implemented authentication and access roles in my Xataface system and I have a requirement to have multiple Administrators. They have unique login names.....say AMShiftAdmin and PMShiftAdmin. It is all acceptable if the Administrators can change/reset passwords of other users but I want to implement a mechanism wherein if the logged in user is say AMShiftAdmin, he must NOT be able to change or alter the attributes of PMShiftAdmin user in the Users table.
Do you have a snippet of how this might be done?
Thanks very much.
I have implemented authentication and access roles in my Xataface system and I have a requirement to have multiple Administrators. They have unique login names.....say AMShiftAdmin and PMShiftAdmin. It is all acceptable if the Administrators can change/reset passwords of other users but I want to implement a mechanism wherein if the logged in user is say AMShiftAdmin, he must NOT be able to change or alter the attributes of PMShiftAdmin user in the Users table.
Do you have a snippet of how this might be done?
Thanks very much.