Expand my Community achievements bar.

SOLVED

How to inactive button in author mode?

Avatar

Level 3

Hi all,

I am using a component on top of page which has edit and delete button.

I wan to make these buttons inactive for all author members except one group. It should be able to edit/delete with that specific group of member, no one else.

What is your best method?

Thanks

1 Accepted Solution

Avatar

Correct answer by
Level 10

You might be able to set the cq:actions config to empty, and then add custom actions back in via the cq:actionConfigs child node. There by you can control by ACLs.

View solution in original post

2 Replies

Avatar

Level 3

Avik Banerjee wrote...

Hi Bahar,

Could you please be more specific with your question here? We would be glad to assist.

Thanks-

Avik

 


Thanks Avik,

Sure, have you seen the image? I have two button in my component which is edit and delete the component.

Suppose I have Group A, Group B, Group C in my users of AEM. I want to keep this component readable by all groups A, B, C but only group A be able to do edit and delete the component.

I thought that should be good if these components be inactive when the other group login to system.

I hope it is more clear now.

Avatar

Correct answer by
Level 10

You might be able to set the cq:actions config to empty, and then add custom actions back in via the cq:actionConfigs child node. There by you can control by ACLs.