iank Posted July 15 Share Posted July 15 Sorry @bernhard, I now have another question! I've given a user role the necessary "rockfrontend-alfred" permission and that role is able to edit/add blocks etc., but only the superuser gets to see the trash icon on the Alfred front-end. (Users with that role can trash blocks in the back-end). Can you advise how to make this available for a non-superuser role? It seems to be related to $block->trashable() but they have page-delete permission and can trash pages OK (as well as blocks) in the admin . Thx, Ian. Link to comment Share on other sites More sharing options...
bernhard Posted July 15 Share Posted July 15 23 minutes ago, iank said: Can you advise how to make this available for a non-superuser role? It should be there, of course. I just checked and I can reproduce this on my end, so I'll try to fix this asap. Can you please confirm that your user does also not see the clone icon? Link to comment Share on other sites More sharing options...
iank Posted July 16 Author Share Posted July 16 15 hours ago, bernhard said: Can you please confirm that your user does also not see the clone icon? Hi @bernhard - the clone icon is visible for the user. This is what they see on the front end with Alfred: Regards, Ian. 1 Link to comment Share on other sites More sharing options...
bernhard Posted August 20 Share Posted August 20 Hey @iank sorry for the delay. I'm investigating! Any news from your side? It seems I can't duplicate this any more ? Link to comment Share on other sites More sharing options...
iank Posted August 21 Author Share Posted August 21 Hi @bernhard, Thanks for the reminder. I'd forgotten about this, but you prompted me to take another look. Since my original post I've added RPB to a couple of other sites, and the trash icon shows up just fine for non-superusers. So it made me think this was a problem just with that one specific site. The site in question has a lot of templates and a much more granular set of permissions for the non-superuser (editor) role. I had the "page-delete" permission checked for that role, and then had certain templates where this was revoked, one of which was the home template: And when I unchecked that checkbox for the editor role, suddenly the trash icon appeared on all the RPB blocks. I guess I don't need that revoke, since I don't think you can delete the home page regardless. Anyway, that seemed to be the problem, and it's now working, so I'm happy ?. Wondering if this behaviour is because the RPB blocks are children of the home page, and whether that has a bearing on the issue. Regards, Ian. 1 Link to comment Share on other sites More sharing options...
bernhard Posted August 21 Share Posted August 21 Ok great, thx ? RPB blocks inherit permissions from the page where the field lives on. Would be great to mark this as [solved], thx ? 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now