Currently the ceess control has three controls:
View, Update, Delete

IMHO, it would be better and more flexible to have
View, Create, Update, Delete or even Moderate

Comments

mimi-1’s picture

pyromanfo’s picture

We can only support what node_access supports, and they only support delete, update and view. If you want more granularity you'll have to talk to the core guys, we can only support what Drupal supports.

mimi-1’s picture

I respectfully disagree.
The "node" in core is a abstract concept, and "create node" are actually implemented in individually types, such as "blog" "page", they allow to "create own blog", etc.

So one scenario I can imagine is: if the term say, "tech blog" does not grant access to the role, the user can not then create blog under "tech blog" although s/he may create blog under other terms.

pyromanfo’s picture

I got to thinking about it more and you're entirely right. Create permissions don't make sense on a per node level because if you have a node to attach permissions to you've already created it. The permission is handled the old Drupal way with 'create content' and the various module permissions. However taxonomies could have create permissions, since you can create nodes inside taxonomies. So I'll get to work on that then.

mimi-1’s picture

Sounds great. Look forward to the update.
By the way, currently, when you don't check the "view" permission box, even one can not see his/her won node that had been created previously.

pyromanfo’s picture

That's by design. Think about it like this, if you have a forum that you want to ban a user from, you don't want them to be able to read/update/delete their own posts after you ban them simply because they created them, right?

pyromanfo’s picture

Fixed in CVS, try it out to make sure I didn't miss anything. But now the user should only see taxonomies that they have create permission for in the taxonomy select form. I'm going to update quickpost to handle it too (another module of mine).

pyromanfo’s picture

Also, forgot to mention, you'll need to update the database. Drop the term_access table and reimport the mysql file.

Anonymous’s picture