Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

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

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

Can't delete comments?


Go to End


5 Posts   1911 Views

Avatar
chlo

6 Posts

13 July 2007 at 12:09am

I've just started playing around with Silverstripe over the past few days (nice CMS btw!); and presently working my way through Tutorial 2. I've enabled comments, posted a few... but there's no way to remove them?

I thought this unusual, so had a browse through the code and reached PageComment.php and it appears as though a delete link is supposed to appear when I'm logged in (though I could be mistaken)?

I'm most certainly logged in! Any ideas?

Avatar
xmedeko

Community Member, 94 Posts

13 July 2007 at 9:54am

Hi,

is you use SS 2.0.1, then the membership checks in the PageComment.php are wrong. You have to fix them, or to set manually a flag CanCMSAdmin in the Group table in MySQL.

Avatar
chlo

6 Posts

13 July 2007 at 1:06pm

Hi, thanks for the reply.

I am running SS2.0.1.

Could you be a little more specific as to what/how I fix the membership checks in PageComment.php?

I'm still quite new to PHP!

Thanks in advance.

Avatar
xmedeko

Community Member, 94 Posts

15 July 2007 at 9:41am

in PageComment.php replace all:
[code php]
if($member && $member->isCMSUser()) {
for
[code php]
if($member) {

Avatar
xmedeko

Community Member, 94 Posts

15 July 2007 at 10:16am