StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



User is AdministratorExpand / Collapse
Author
Message
Posted 01/08/2007 8:31:53 AM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 2 days ago @ 4:06:22 PM
Posts: 313, Visits: 1,274
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

Post #5662
Posted 01/08/2007 8:41:45 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 10/21/2008 9:20:58 AM
Posts: 2,685, Visits: 1,887
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.


www.bungie.net
Post #5665
Posted 01/08/2007 8:54:50 AM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 2 days ago @ 4:06:22 PM
Posts: 313, Visits: 1,274
Thanks, that will be great.
Post #5667
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 7:43am

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.125. 10 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.