Jump to:

17452 Posts in 4473 Topics by 1971 members


SilverStripe Forums » Archive » Problem with right to manage page comments

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 1164 Views
  • Leaf
    Community Member
    1 Post

    Problem with right to manage page comments Link to this post


    I'm building a page with comments and moderation enabled. I have two groups in the security section: admins with full administrative rights and a group for site authors having the following rights: AssetAdmin, CMSMain and LeftAndMain.

    The problem occurs, when a member of the site author group trys to manage the comments right on the page (with the comments): No approve or delete links are provided. This works only for the admin group, although (as far as I can see in the in the PageComments class) only CMSMain (=CMS_ACCESS_CMSMain) right is required.

    Another problem is with comments section in the CMS. Approving comments does not work. Approved, the entry disappears but is not moved to the approved comments. After reloading the "awaiting moderation" table the comments appears right again...

    EDIT: I forgot to mention, that adding access to page comments in CMS for the author group doesn't change anything and with the problem managing comments in the CMS: after pushing the save button an "Error talking to the server" pops up.


    Hrm, for anyone with the same problem: I was able to solve the problem to some extent myself by adding another permission check (Permission::check('CMS_ACCESS_CMSMain')) in the Comments() function in PageCommentsInterface for the $unmoderatedfilter (line 65 for me). Now the not approved Comments are displayed and you can also manage them with CMSMain rights.

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.