How do I protect easysocial group file's from groups members against delete action. Only group admin or super admin should be able to delete files, not a joining group member.
how remove this red lined buttons for groups members
How do I protect easysocial group file's from groups members against delete action. Only group admin or super admin should be able to delete files, not a joining group member.
how remove this red lined buttons for groups members
Copyright © 2021 Jogjafile Inc.
I have not work with easysocial ever but I think it's simple.
At first check at backend. If no configuration for it then you have to change code at this view files. Pick the user type. If the logged user type is super admin or group admin, then the delete button will appear. Simple "if" condition.
It would be better to check user type at controller function of it too.