Closed (fixed)
Project:
Scheduler
Version:
master
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
15 Dec 2009 at 20:12 UTC
Updated:
26 Feb 2019 at 21:00 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
rbarlow commentedI had a similar requirement a few months ago, I needed to show only the un-publish option.
The attached patch adds an extra checkbox to the node settings page allowing publishing and un-publishing of that node type to be controlled independently.
The patch is for the 6.x-1.6 release, first patch I've created for a drupal module so I don't know if it's normal to provide a patch for a released version or CVS head.
Comment #2
Anonymous (not verified) commentedThank you, I'll take a look on this :)
Comment #3
eric-alexander schaefer commentedI think splitting the permissions could be useful. But it would have to be a non breaking change. That means, if somebody deploys a new version of scheduler with the split permissions, their permission setup should still work. (e.g. if somebody had the permission to use scheduler, he/she should have both permissions after the upgrade)
Comment #4
eric-alexander schaefer commentedIf you think about it, maybe it should not be a permission but a configuration option?
Comment #5
eric-alexander schaefer commentedWhat is the status of this issue. The patch looks rather promising. Does it work?
Comment #6
SpikeX commentedSubscribing. These permissions should be separate, it really makes the most sense that way. When I saw they were combined the first thing I did was come here to see if there was already an issue about it (and there is). Hopefully this patch will make it into a stable version of the module so I can use it.
Comment #7
codycraven commentedIf this is done as a permission you can make a hook_update_N() implementation that will apply the new split permissions to all roles that currently have the permission.
Comment #8
eric-alexander schaefer commentedPlease checkout the attached patch. It splits the node type settings as the original patch in #1. Additionally it uses a separate fieldset for scheduler settings (as opposed to be part of "workflow settings") and nested fieldsets for publishing and unpublishing. This might seem like overkill but it will be used for other options for publishing and unpublishing as well as additional actions (e.g. promote/demote/sticky).
The patch is rolled against the current CVS-HEAD (or 6.x-1.x-dev 2010-Oct-07).
Please test! This will be the base for lots of new features...
Comment #9
eric-alexander schaefer commentedHere comes a patch for scheduler.install to convert the old configuration values to the new ones.
Comment #10
eric-alexander schaefer commentedIgnore the last patch please. Let's say it never happened...
Attached patch includes the changes to scheduler.module (which are based on rbarlows patch, thanks) and scheduler.install. Since nobody is listening anyways I will commit the patch right away. I tested it now for quite a while and it seems to work well.
I also changed the title of this issue because it was never really about permissions, but about hiding unused settings. It might be worth a second thought if a separate permission per setting could be useful. But that would be another issue.
Comment #11
eric-alexander schaefer commentedhttp://drupal.org/cvs?commit=448846
Comment #13
zilverdistel commentedNice work with this module, has any new stable release been scheduled yet? I really need this patch in production ...
Comment #14
eric-alexander schaefer commentedNot yet, but expect it before the end of the year.