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



Permission to change field valueExpand / Collapse
Author
Message
Posted 10/17/2007 10:46:24 AM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: Today @ 9:51:36 AM
Posts: 429, Visits: 1,612
Hi,
I need to allow user to specify which user has permission to offer 100% discount to customer. Where could I call GetPermission() to prevent unauthorized user to specify "invalid" value?

Thank you
Post #12037
Posted 10/19/2007 9:23:31 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 1:19:33 PM
Posts: 4,556, Visits: 4,542
This would just require that you call the GetPermission method within your application before allowing someone to apply a 100% discount.  For example, if you have a button that allows this to happen, you could hide or disable the button or link when the form is being initialized (Load or Constructor).  You could also place this logic when the button or link is clicked and show a message if they do not have permission.

If Not SecurityBasics.CurrentUser.GetPermission("100% Discount").Action = PermissionAction.Grant Then
        MyDiscountButton.Enabled = False
End If
Post #12094
« 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 8:36pm

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.047. 12 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.