Componentsvisibility basedon who created a component / data group


Hie @Ketan @vishsahu @alitanwir i want to control who can edit or delete a data group so that only the person who created a data group can be able to edit it or delete , and others can only read and comment . I have a modal function that contains the functions a person ca take on the data . How can i control who can do what based on whether is the person the one who created it or not ?

@vishsahu a reminder on this one

can you please help with this @alitanwir

Hi @Nigel - You can control the visibility of elements in the DataGroup based on RBAC by selecting the Current LoggedIn User option in the From (Source) list. For example, users with the Sales role cannot view the Edit or Delete buttons, as these buttons will be disabled for them. In contrast, users with the Admin role or other roles will have the Edit and Delete buttons visible and enabled.

Additionally, you can manage this using permissions through the Permission plugin.

@alitanwir yes interms of RABC I understand . what about in a community structure , where you want the creator of a post to be able to edit the post and everyone else to just read . Like how this community is working , only me has the ability to edit my post or delete it but everyone else can only read and cant delete

@vishsahu @alitanwir this part is stopping progress . Can you help

Hi @Nigel - In Component Visibility, we currently support RBAC and Permissions, but this use case is not supported in the Component Visibility feature.

@alitanwir so there is no way to do this in drapcode … To only allow the person who create a post to edit / delete while the rest can only read ? Or there is another way you would suggest but outside componet visibility approach ?