cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper I
Helper I

Security roles and Create, Delete, Assign, Share buttons behaving strangely

This seems like a bug to me but I'm not sure of the cause

 

I am building a custom model driven app, with four security roles

 

When the person testing is assigned a security role which should not be able to delete a particular entity record, they can see the "Delete" button on the entity but receive an error when they try to click it: "You do not have prvDeletePrefix_EntityName"

 

Likewise they can see buttons to Create, Assign and Share but receive an error when their security role does not allow it

 

BUT, when they use a security role which DOES have the delete privilege for a custom entity, they can't see the Delete button!!

 

The most bizarre thing is that when the user tries to perform the same action via the Advanced Find, the app applies the security role correctly and the buttons are only visible if the user has the privilege to perform that action.

 

What's going on here? Is it something that Publish all customisations will fix or are there bugs with the ways these buttons work in Model Driven Apps?

1 ACCEPTED SOLUTION

Accepted Solutions
Helper I
Helper I

The tester tried the same tests again today in incognito mode and that appears to have resolved the issues

 

Not sure what happened the first time but perhaps they got their mixed up between incognito and normal windows

 

So it looks like this was down to browser caching

View solution in original post

3 REPLIES 3
Helper I
Helper I

This happened when the user was switched from one to another several times in one day so I wonder if there's some kind of server side cache which is getting mixed up and causing the problem?

 

The tester has tried clearing browser cache, restarting laptop, incognito mode, different browser and still can get the same issues

 

Any ideas?

Helper I
Helper I

The tester tried the same tests again today in incognito mode and that appears to have resolved the issues

 

Not sure what happened the first time but perhaps they got their mixed up between incognito and normal windows

 

So it looks like this was down to browser caching

View solution in original post

Hi,

 

I am glad that you were able to get this resolved. This definitely looks like some odd cashing issue. Hopefully this will prove to be useful for future communities users. Thanks for the follow up!

 

Regards,

 

Alex

 

-------

 

Community Support Team _ Alex Rezac
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Top Solution Authors
Top Kudoed Authors
Users online (46,766)