StrataFrame Forum

User is Administrator

http://forum.strataframe.net/Topic5662.aspx

By Tim Dol - 1/8/2007

Is there anyway to find out if the current user is an Administator without having to access the string-typed properties on the SFSUsersBO object? I could not find anything under SecurityBasics.CurrentUser that provides this information. 

Thanks

Tim

By StrataFrame Team - 1/8/2007

There is not currently a way to determine if the user is an administrator without the use of reflection.  There is a private field called _IsAdministrator within the LoggedOnUser class that contains a Boolean value indicating whether the user is an administrator.  I will add a property to the ISecurityUser object that will indicate whether the user is an administrator for the next update.
By Tim Dol - 1/8/2007

Thanks, that will be great.