Hi,
maybe I am just a little bit lost at the moment, but martijn could you please correct these assumptions, if I am wrong?
Access to nodes and sections is controlled using noderole and sectionrole tables. Depending on the view/edit settings, corresponding actions are allowed.
Now when it comes to roles, there is a permissionlevel as well (bitmask, currently giving four levels). These are used to handle global aspects of access, mainly regarding the back-end.
Anonymous: Only view pages that are set to Anynomous User (having permission Anonymous)
Authenticated: same as above, must be logged id
Editor: same, plus gets edit links for sections
Admin: same, plus back-end allowed
You're perfectly right about this.
I was just thinking, instead of having to worry about full work flows, a simple work flow could be by introducing one extra attribute
1. Publisher
so if someone is an editor but not a publisher the modification goes to a publishing queue, which can only be released by a publisher or administrator.
This wouldn't be too hard to implement (correct me if I'm wrong).
AL
I was also thinking about the easiest way to add the publisher functionality. Would it not be just as easy to introduce the concept of Node ownership and propogate it just like the current security settings?
That way we could enforce content approval based upon ownership of an upperlevel node. This would pretty much create the simple workflow that you want, and allows us to enforce approval based upon whom is responsible for the content of that area of the site.
I think that really matches the way that users will work.
To get a "basic" general workflow this would surely work.
The only question is, how would this work together with an advanced workflow system?
Taken the idea of "node ownership", if a module implements a larger workflow, would it bypass the general settings, or would I have to add module specific workflow roles to the node ownership etc. This could quickly get quite nasty...
As well, how would an inter-module workflow be defined?
Would we want to implement this, anyway?
I will post on the NetBPM forums to get some hints how much work it would involve to integrate the system into Cuyahoga, maybe with some more information we can decide?
As well I opt on adding a "SubAdmin" PermissionLevel, which for example has rights to change some node settings (add/remove sections) but has no access to the user base or cannot delete nodes or install/de-install modules and templates.
To allow different user bases for sites, I suggest to add an user_site mapping table, where users can be added to multiple sites, if needed.
mgaerberTaken the idea of "node ownership", if a module implements a larger workflow, would it bypass the general settings, or would I have to add module specific workflow roles to the node ownership etc. This could quickly get quite nasty...
As well, how would an inter-module workflow be defined?
Would we want to implement this, anyway?
My preference is to keep things simple. I think an advanced workflow system makes things too complicated for simple usage. We're not targeting the Enterprise CMS market (or are we?).
As well I opt on adding a "SubAdmin" PermissionLevel, which for example has rights to change some node settings (add/remove sections) but has no access to the user base or cannot delete nodes or install/de-install modules and templates.
I know of at least one user (gvarela) who implemented something like this already. Perhaps he can add something to this discussion?
To allow different user bases for sites, I suggest to add an user_site mapping table, where users can be added to multiple sites, if needed.
Yes, that's already on the 1.1 list, but let's focus on the items with top priority first.
martijnYes, that's already on the 1.1 list, but let's focus on the items with top priority first.
Surely. I don't mean implementing this right away, just gathering stuff for the "big picture"
martijnMy preference is to keep things simple.
Speaking of simplicity, do we have a winner (Castle vs. Spring)?
martijn We're not targeting the Enterprise CMS market (or are we?).
not yet ;-)
mgaerberSpeaking of simplicity, do we have a winner (Castle vs. Spring)?
I think Castle beats Spring on simplicity. You probably have to do a little bit more coding, but it's really clean, flexible and extensible. The only issue that has to be dealt with is dynamically changing the NHibernate configuration (when loading modules), but it is doable, I think.
I think a workflow would be really cool, but I guess it does introduce complexity.
Building a CMS for the corporate level really would enter Cuyahoga in to a niche... but is there demand for this? (not to mention resources to make it in ti one).
Maybe we should consider looking at a more extensive (and flexible) user system with user groups added to the system.
If this was developed flexible enough, such things as node or branch ownership and various admin tasks could be easily set up (with a default base for novices).
So permission attributes such as ;
Admin
Publisher
Editor
Subscriber
Anonymous
With a particular User Group or user being assigned any number of these at either at a branch (or top of tree) with cascasding permissions or just an individual node.
Al
martijnbI think Castle beats Spring on simplicity. You probably have to do a little bit more coding, but it's really clean, flexible and extensible. The only issue that has to be dealt with is dynamically changing the NHibernate configuration (when loading modules), but it is doable, I think.
Alright, I think Castle is a good choice, too.
And with ASP.NET 2.0 lots of web "goodies" will be available without any extra libraries...
big_alMaybe we should consider looking at a more extensive (and flexible) user system with user groups added to the system.
.
I think it should be sufficient to extend the permission enum to some more access levels. What would you like to achieve using groups?
mgaerberTo get a "basic" general workflow this would surely work.
The only question is, how would this work together with an advanced workflow system?
Taken the idea of "node ownership", if a module implements a larger workflow, would it bypass the general settings, or would I have to add module specific workflow roles to the node ownership etc. This could quickly get quite nasty...
To be Sure...I wasn't suggesting this as a "total workflow" way of doing things although I do think that "node ownership" would be very important in "enforcing" any workflow we might have.
We could go a totally different different direction in the future, but it seems this would be the easiest way to implement content approval for a usable 1.1.
There is some real momentum right now around this project, and most of the requests I've seen included this feature. I think that not having this piece in there is a deal breaker for many people and is probably the single greatest barrier to widespread adoption.
On
http://www.cuyahoga-project.org/home/forum.aspx?g=posts&t=229
I posted a way of preparing Cuyahoga for a workflow system.