Answered Me.User.HasPermissions brings FALSE on any permission

  • Wednesday, April 11, 2012 1:40 PM
     
     
    Hi!
    I created my first app in LS, and now trying to add permissions to my screens.
    I have two domain users, the one I logged in I suppose to be Admin.
    I created permissions in App.Properties, created roles, added permissions to roles and added roles to users.
    Now in <form>Name>_CanRun I want to allow  open this screen only to Admin.
    So I added clause as seen in many examples 

          result =  Me.User.Haspermission(Permissions.Admin)
        or
            result = Me.User.IsInRole("Admin")

    (Admin  is a role and permission, I've tried another permissions and roles as well). In edit/debug mode I can see intellisense prompt of my permissions and roles,
    but clause returns FALSE only. So I cant see my screen on menu.
    Some ideas?

    Big thanx

All Replies