Survey Forums

HomeHomeSurvey Project ...Survey Project ...DevelopmentDevelopmentWhy is admin special?Why is admin special?
Previous
 
Next
New Post
11/30/2015 10:34 PM
 

I'm puzzled by code like

if (NSurveyUser.Identity.IsAdmin ||
              NSurveyUser.HasRight(right))

why isn't that first line `NSurveyUser.HasRight("admin")`?  Is there some distinction I don't see or is it just historical?

 
New Post
11/28/2017 11:19 AM
 
Hello,

They are indeed distinct.
- IsAdmin checks if useraccount has SP adminstrator role (complete authorisation to everything)
- HasRight (right) checks the individual rolerights that give access to specific features/ menu options

(Btw sorry for the late reponse).
 
Previous
 
Next
HomeHomeSurvey Project ...Survey Project ...DevelopmentDevelopmentWhy is admin special?Why is admin special?