CurrentUserChanged


Author
Message
Kevin Lingofelter
Kevin Lingofelter
StrataFrame Novice (123 reputation)StrataFrame Novice (123 reputation)StrataFrame Novice (123 reputation)StrataFrame Novice (123 reputation)StrataFrame Novice (123 reputation)StrataFrame Novice (123 reputation)StrataFrame Novice (123 reputation)StrataFrame Novice (123 reputation)StrataFrame Novice (123 reputation)
Group: Forum Members
Posts: 77, Visits: 804
I am handling this event to change some UI elements based on SecurityBasics.CurrentUser object. For example, changing the text on the status bar to show the currently logged on user. This works fine.

The problem I'm having is that the method GetPermission is returning the same action as the previously logged on user. Specifically, I have the menu item "Manage Security Options". I only want this menu item enabled if the user is assigned an Administrative role.

This works fine if I initially login with a user that doesn't have admin role assigned (the menu is disabled). However, if I initially login as admin, logout (using the session object), then log back in (as non admin user), the menu item remains enabled.

Stepping through the code indicates GetPermission is returning Grant for the new user, despite the user isn't assigned the admin role.

BTW...thanks for setting up the forum!

Reply
StrataFrame Team
S
StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
Hehe, not a problem Smile  I do that to myself quite often... I have several security projects going at the same time, and rather than deploying the data each time I want to debug, I just point my SecurityDataSourceKey to the StrataFrame database and use the development data... but the runtime has no notion of "security projects" so they all get mixed together and sometimes I don't realize that I have two users with the same username in two different projects and it grabs the wrong one Hehe
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search