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 ?