Visual Builder

Get Involved. Join the Conversation.

Topic

    Guy Lior
    Roles in mobile app not working
    Topic posted October 31, 2019 by Guy LiorBronze Medal: 1,250+ Points 
    24 Views, 6 Comments
    Title:
    Roles in mobile app not working
    Summary:
    Roles in mobile app not working
    Content:

    Hi,

    Created a mobile app, created one rolw and assigned users/groups.

    When the app is loading I print the value of $application.user.roles and get very long list of ids.

    Any suggestion?

    Comment

     

    • Shay Shmeltzer

      Are you seeing this when you actually publish the app and run it on your phone?

      Or is it just in design time/browser based testing?

      • Guy Lior

        In dev version I see in the log a very long list of ids, seems like all the roles I have across system.

        In live on both mobile and desktop, I am getting only "approle.authenticated.user" which is not the roll I assigned.

        Attached sample app, just create one role is not exists and assign a group. look in the console for ***

        In webapp I see in the log the list of roles also in dev.

        in the IDE I do see the correct role. (see screen shot)