View RSS Feed

Edwin Brown

v403 CMS Permissions

Rating: 2 votes, 3.00 average.
In v402 CMS permissions were additive- each permission granted also granted the lower permissions. So, for example, if you had "Can Use HTML" rights you were also granted all other rights. There were several complaints about this, and it was clear that's not how the community wanted this. Also there were several people who wanted the ability to control access to view/download attachments.

Therefore we have changed how CMS permissions work. In v403 there are two linkages:
  • If you grant any rights you have granted "view". I think it's fairly obvious that if you want someone to be able to, for example, download attachments that you meant them to be able to view the page.
  • If you grant "Can Use HTML" you have also granted "create" rights. Again, if you meant for someone to be able to enter HTML in an article you must have meant them to be able to create the article.

Otherwise the rights are separate. So you could, for example, grant "publish" and "view" but nothing else. We also use javascript to display this relationship. So if, for example, you click "create" then the "view" list will be checked. If you uncheck "view" then all the other rights will uncheck.

Click image for larger version

Name:	permissions..jpg
Views:	1727
Size:	86.2 KB
ID:	43101

Submit "v403 CMS Permissions" to Digg Submit "v403 CMS Permissions" to del.icio.us Submit "v403 CMS Permissions" to StumbleUpon Submit "v403 CMS Permissions" to Google

Tags: permissions
Categories
vBulletin CMS

Comments

Page 1 of 2 1 2 LastLast
  1. Carnage- -
    Carnage-'s Avatar
    Would it be possible to add these permissions on a per content type basis? I know there is currently only one content type, but i'm sure there will be lots more over time (i've got one in the works)
  2. Edwin Brown -
    Edwin Brown's Avatar
    At the moment, no. That would require a database redesign and interface change. If you feel that's necessary please submit a feature request in Projects.
  3. Darkshenron -
    Darkshenron's Avatar
    Thanks for letting us know Edwin, I see a great improvement but I still insist on what Freddie and David said in Bug 35610. No matter if that would allow people to set up useless permissions; the forum/user group permission system does allow to set up useless permissions, but at least it grants a 100% control over it.
  4. Edwin Brown -
    Edwin Brown's Avatar
    If that's what the community wants, it's easy to remove the code that enforces that. Is there anyone who objects to removing the code that enforces the two relationships above?
  5. Lynne -
    Lynne's Avatar
    Thanks again for another blog regarding how the CMS works, Edwin. I find these to be very informative. Sometimes things get added, or changed, and it's good to hear from the developers about what is changing.
  6. edenx -
    edenx's Avatar
    Quote Originally Posted by Edwin Brown
    If that's what the community wants, it's easy to remove the code that enforces that. Is there anyone who objects to removing the code that enforces the two relationships above?
    I second this. I want 100% control on what the users can do or not. No relationships at all.

    Thanks.
  7. x626xblack -
    x626xblack's Avatar
    I agree. No relationships. Complete control to decide what is or is not allowed..... However you know you are going to have people who assume that granting one thing will grant a second....
  8. Carnage- -
    Carnage-'s Avatar
    Quote Originally Posted by Edwin Brown
    At the moment, no. That would require a database redesign and interface change. If you feel that's necessary please submit a feature request in Projects.
    I feel its absolutly nessisary and i'm sure once more content types become avaliable a lot of other people will feel the same.

    I agree. No relationships.
    Can you give me any use cases that might require someone being able to use html while creating content but NOT be able to acctually create content?

    I can slightly see the need for not being able to view content but being able to create it; so how about splitting that permission into 'can view' and 'can view own' equally, publish should be split 'can publish' and 'can publish own' (adding 'can publish others'* would be nice too) then you have

    'create' implies 'can view own'
    'publish' implies 'can view'
    'publish own' implies 'create'
    'html' implies 'create'

    * this would create a really nice setup where by you can have a group of members creating articles which can only be published by another member of the group; essentially, someone else needs to review the content before it can be published.
    Updated Tue 23rd Feb '10 at 11:32am by Carnage-
  9. akia -
    akia's Avatar
    I don't get some people, why would you want them to remove the code that sets the links between permissions automatically just so you can feel that your "100%" in control. Its far more user friendly with it than without and like Edwin said it would be pointless to give one without the other. And if anything they need make things simpler rather than more confusing and this is a small thing that am sure will stops lots of forum posts and support ticket when people are asking why they can't create new articles when the've ticked the allow HTML but forgot to tick create content.
    Updated Tue 23rd Feb '10 at 7:21pm by akia
  10. Darkshenron -
    Darkshenron's Avatar
    Quote Originally Posted by mattysheff
    I don't get some people, why would you want them to remove the code that sets the links between permissions automatically just so you can feel that your "100%" in control. Its far more user friendly with it than without and like Edwin said it would be pointless to give one without the other. And if anything they need make things simpler rather than more confusing and this is a small thing that am sure will stops lots of forum posts and support ticket when people are asking why they can't create new articles when the've ticked the allow HTML but forgot to tick create content.
    How frequently do you see someone asking why he can't access a forum to post in it even if he set to 'Yes' the permission Can Post Threads but he set to 'No' the permission Can View Forum in forum permissions? This is the same exact situation with the CMS.
    At most, just add a note saying that in order for any permission to work, you should also grant the "Can Read" permission.
  11. ThorstenA -
    ThorstenA's Avatar
    We also use javascript to display this relationship. So if, for example, you click "create" then the "view" list will be checked. If you uncheck "view" then all the other rights will uncheck.
    Nice
  12. Paul M -
    Paul M's Avatar
    I take it these relationships only work when access is granted, not when its removed - i.e. if I remove the "Can Use HTML" I do not want to remove any other "create" rights.
  13. melbo -
    melbo's Avatar
    So I will be able to set "Can view" for Unregistered/not logged in but disallow them from downloading attachments?
  14. sadikb -
    sadikb's Avatar
    Hi, there is a very strong need to separate Article Permissions with Section Definition Permissions. At the moment if someone can edit or publish articles he can also edit the section definition page. I mean if you have a MOD whom you have granted edit article rights, he can also change the section layout, 1 column two column etc... That's really dangerous because unsuspecting Mods may accidentally mess up all the section Display settings.

    Should I post this as a BUG?
  15. lightbox -
    lightbox's Avatar
    Please remove the automatic relationship of permissions!
    We need to setup special permissions for users and an easy way to (temporary) switch off "create" permissions without removing all the other special (individual) permissions.

    Thanks
    Martin
  16. Edwin Brown -
    Edwin Brown's Avatar
    Quote Originally Posted by sadikb
    Hi, there is a very strong need to separate Article Permissions with Section Definition Permissions. At the moment if someone can edit or publish articles he can also edit the section definition page. I mean if you have a MOD whom you have granted edit article rights, he can also change the section layout, 1 column two column etc... That's really dangerous because unsuspecting Mods may accidentally mess up all the section Display settings.

    Should I post this as a BUG?
    In the current working branch I have set so only Publishers can edit the section page. That's not the same as having per-content-type permissions, which would require an interface redesign. I've asked Don to review the current interface, so I can's say what will be in v4.03.
  17. Edwin Brown -
    Edwin Brown's Avatar
    Quote Originally Posted by Edwin Brown
    In the current working branch I have set so only Publishers can edit the section page. That's not the same as having per-content-type permissions, which would require an interface redesign. I've asked Don to review the current interface, so I can's say what will be in v4.03.
    That's already in the code, as I explain in the blog, and will be in v4.03. The only issue under discussion is whether admins should be able to set combinations that are internally inconsistent, such as "edit" but not "view". Since the majority seem to want that, I've removed all the links and all combinations are now available.
  18. Darkshenron -
    Darkshenron's Avatar
    Thanks Edwin.
  19. Rayiw -
    Rayiw's Avatar
    Hi Edwin,
    I'm using 4.0.2 and cannot display attachments for unregistered users to download.
    Do I need to wait for version 4.0.3 to support this?
    Under ACP attachment permissions, the unregistered group is missing.

    Thanks
  20. Edwin Brown -
    Edwin Brown's Avatar
    Quote Originally Posted by Rayiw
    Hi Edwin,
    I'm using 4.0.2 and cannot display attachments for unregistered users to download.
    Do I need to wait for version 4.0.3 to support this?
    Under ACP attachment permissions, the unregistered group is missing.

    Thanks
    No, there's something else going wrong. In v402 you can't prevent users from viewing/downloading an attachment if they can see the article. At least as far as the permissions go. If you can't figure it out this sounds to me like a support ticket.
Page 1 of 2 1 2 LastLast

Trackbacks

Total Trackbacks 0
Trackback URL: