Forum

Thread tagged as: Error, Comments

Small Comments App Bug?

Hello,

I just thought I'd post that we had a call from a client this morning who wasn't able to edit comments (as user role 'Editor'). We checked the role and it was setup correctly, clicking on the date didn't work though (it just lead to a page-refresh). This meant that editors could moderate but not view the comment (or amend it should they wish).

We checked the code (app v1.1) and it seemed as though "edit.pre.php" had a duplicated '.comments'. We've removed it and the app is working as it should. Just thought I'd check we've done the right thing:

if (!$CurrentUser->has_priv('perch_comments.comments.moderate')) { PerchUtil::redirect($API->app_path()); }

...becomes...

if (!$CurrentUser->has_priv('perch_comments.moderate')) { PerchUtil::redirect($API->app_path()); }

Thought I'd post if anyone else comes up against this problem.

Cheers, Lea.

Lea Chapman

Lea Chapman 0 points

  • 7 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Ok, thanks.