5102 Posts in 1520 Topics by 1116 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1187 Views |
-
Remove delete and unpublish buttons

4 June 2009 at 1:37am
Hi.
I was wondering if it's possible with access rights to hide the delete and unpublish buttons from site content for certain user groups.
Thanks.
-
Re: Remove delete and unpublish buttons

5 June 2009 at 8:14am
Just overload Page->canDelete() and canPublish(), see SiteTree methods for details on how to code these.
-
Re: Remove delete and unpublish buttons

5 June 2009 at 6:50pm
The problem is that in the SiteTree class in core/model the if statement for the delete button only checks canEdit. I had to override the method getCMSActions and update the if statement to: if($this->canEdit() && $this->canDelete())
| 1187 Views | ||
|
Page:
1
|
Go to Top |


