1

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.

enter image description here

how remove this red lined buttons for groups members

GDP
  • 8,109
  • 6
  • 45
  • 82
gill
  • 83
  • 1
  • 9

1 Answers1

0

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.

Kajal Pasha
  • 104
  • 3