RSS Feed/News Prevent resource authors from rating their resources for a custom error message

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
27,555
Points
823

Reputation:

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...
 
Status
Not open for further replies.
Top