Jump to content

[Solved] How to make trash icon available in Alfred for non-superuser


iank
 Share

Recommended Posts

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

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

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:

image.png.c10510996aa6847f24d31eea86e9218b.png

Regards,

Ian.

  • Like 1
Link to comment
Share on other sites

  • 1 month later...

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:
 

image.png.2240731599b67afde8fa14c734063d31.png

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. 

 

  • Thanks 1
Link to comment
Share on other sites

  • iank changed the title to [Solved] How to make trash icon available in Alfred for non-superuser

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...