Sometime before I was written a big statement to find out the System admin rights of current user. Later I realized about global function that will help us to find the same.
isSystemAdministrator(): will tell you the current user is having the admin rights or not.
if isSystemAdministrator() return true then the user is having system admin rights, else not a system admin.
isSystemAdministrator(): will tell you the current user is having the admin rights or not.
if isSystemAdministrator() return true then the user is having system admin rights, else not a system admin.
No comments:
Post a Comment