Keşfet

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

XFdestek

Kurucu Üye
Katılım
25 May 2014
Mesajlar
5,513
Tepkime puanı
287
Konum
Türkiye
Web sitesi
fivetu.xyz
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...

Lütfen içeriği görebilmek için Giriş yap yada Kayıt ol
 

Konu görüntüleyen kullanıcılar

Geri
Üst Alt