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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Permission to Edit and Save but NOT PUBLISH


Go to End


4 Posts   2088 Views

Avatar
jmbinfo

Community Member, 2 Posts

14 May 2010 at 1:32am

I'm trying to figure out how to allow users to make changes to the website but then only one person ( admin ) go in and publish. Seems like this would be easy to do. I understand this is available in 2.4. Is this available in 2.3xxxx?

Avatar
Brian Boyko

Community Member, 1 Post

14 May 2010 at 4:11pm

Edited: 14/05/2010 4:11pm

I don't know about 2.3xxx, but 2.4 has a "CMS Workflow" module here which does exactly what you describe:

http://www.silverstripe.org/cms-workflow-module/

Avatar
MateuszU

Community Member, 89 Posts

21 June 2010 at 2:54pm

That's right, there is a module for that. You can make it work with 2.3 too, but you might need to experiment with which revision you use. The trunk will not work in this case.

m

Avatar
Carbon Crayon

Community Member, 598 Posts

22 June 2010 at 11:21am

Hi jmbinfo,

you can do this in your page model:


function canPublish(){
return Permission:check('ADMIN');
}

This will allow only admins to publish content. This works in 2.3 and most likely versions before that too.

Aram

www.ssbits.com - SilverStripe Tutorials, Tips and other bits