Prevent resource authors from rating their resources for a custom error message

Status
This content is read-only, or is not open for further replies.

Yenxji

Guest
offline
When authors try to rate their resources, they see a "You do not have permission to view this page or perform this action.". I suggest implementing a custom error message to the action isn't allowed.

To prevent confusion errors, if authors are trying to rate their resource, they would get a custom error message: "You are not allowed to rate a resource you made yourself, that's cheating."


This can be done in Entity/ResourcesItem.php to adjust public...

Read more

Continue reading...
 
Liked by:
Status
This content is read-only, or is not open for further replies.
Top Bottom