Home
My Account
Forum
Try It!
Buy It!
About
Contact Us
Site Map
StrataFrame Forum
Home
Search
Members
Calendar
Who's On
Welcome Guest
(
Login
|
Register
)
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
»
StrataFrame Application Framework
»
Role Based Security
»
how to check permissions for user other than...
how to check permissions for user other than...
Rate Topic
Display Mode
Topic Options
Author
Message
Keith Chisarik
Keith Chisarik
Posted 07/01/2009 12:39:53 PM
Advanced StrataFrame User
Group: StrataFrame Users
Last Login: Today @ 11:36:51 AM
Posts: 825, Visits: 38,668
I need to check permissions for a given key for a user for which I will only have either the username or primekey value.It will not be the currently logged in user. How please?
Post #23729
Trent L. Taylor
Trent L. Taylor
Posted 07/01/2009 1:28:42 PM
StrataFrame Developer
Group: StrataFrame Developers
Last Login: Yesterday @ 1:48:50 PM
Posts: 6,210, Visits: 6,075
You will just need to create a LoggedInUser instance and after taht you can do everything that you want to do. The below logic will bypass authentication:
'-- Establish Locals
Dim user As New MicroFour.StrataFrame.Security.BusinessObjects.SFSUsersBO()
Dim rbsUser As MicroFour.StrataFrame.Security.LoggedInUser
'-- Populate the BO with the user
user.FillByUserName("MyUserName")
'-- Create the logged in user reference
rbsUser = MicroFour.StrataFrame.Security.LoggedInUser.CreateNew(user)
'-- You can now test on permissions etc. off of the rbsUser
Post #23730
« Prev Topic
|
Next Topic »
Reading This Topic
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators:
Trent L. Taylor
,
Steve L. Taylor
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
may
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Forum Jump...
----------------
Forum Home
Search
Members List
Calendar
Who's Online
----------------
Updates and Information
|-- Posted Releases
|-- Developer Blog Topics
|-- Samples and Solutions
|-- Polls
|-- StrataFrame Users Contributed Samples
|-- User Experiences and Testimonials
StrataFrame Application Framework
|-- Business Objects and Data Access (How do I?)
|-- WinForms (How do I?)
|-- WebForms (How do I?)
|-- Role Based Security
|-- Enhancement Requests
|-- Issues
Enterprise Server
|-- How do I?
|-- Issues
StrataFrame Database Deployment Toolkit
|-- Database Deployment Toolkit (How do I?)
|-- Enhancement Requests
|-- Issues
.NET Forums
|-- General .NET Discussion
|-- Jobs, Careers, and Resumes
All times are GMT -6:00, Time now is 10:56pm
Powered by InstantForum.NET v4.1.4 © 2010
Execution: 0.063.
9 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.