Yenxji
Active member
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 function canRate($checkDownloadIfRequired = true, &$error = null)
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 function canRate($checkDownloadIfRequired = true, &$error = null)
Upvote
1