improve user roles relate code

DEVELOPER can use 'Manage' to temporary change his roles.