[xwiki-devs] [Proposal] Automatically inherit the "View" right from the "Edit" right
Hi Devs, right now an user can have edit rights on a page even though he does not have the view right on that page. This sounds weird to me since that user can still access the page's content by going to the right URL. Thus I think it would be better to have the view right inherited from the edit right (if an user can edit a page he should also be able to view it). Is there any drawback to this? Here's the matching JIRA issue: http://jira.xwiki.org/jira/browse/XWIKI-4491 Thanks for your feedback, Guillaume -- Guillaume Lerouge Product Manager - XWiki SAS Skype: wikibc Twitter: glerouge http://guillaumelerouge.com/
HI, On Fri, Oct 16, 2009 at 3:23 PM, Guillaume Lerouge <[email protected]>wrote:
Hi Devs, right now an user can have edit rights on a page even though he does not have the view right on that page.
This sounds weird to me since that user can still access the page's content by going to the right URL.
Thus I think it would be better to have the view right inherited from the edit right (if an user can edit a page he should also be able to view it).
May be there should be a change of wording, i feel it should be: "edit" right inheriting from "view" right. Thanks. - Asiri
Is there any drawback to this?
Here's the matching JIRA issue: http://jira.xwiki.org/jira/browse/XWIKI-4491
Thanks for your feedback,
Guillaume
-- Guillaume Lerouge Product Manager - XWiki SAS Skype: wikibc Twitter: glerouge http://guillaumelerouge.com/ _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
Hi, On Fri, Oct 16, 2009 at 3:31 PM, Asiri Rathnayake < [email protected]> wrote:
HI,
On Fri, Oct 16, 2009 at 3:23 PM, Guillaume Lerouge <[email protected]>wrote:
Hi Devs, right now an user can have edit rights on a page even though he does not have the view right on that page.
This sounds weird to me since that user can still access the page's content by going to the right URL.
Thus I think it would be better to have the view right inherited from the edit right (if an user can edit a page he should also be able to view it).
May be there should be a change of wording, i feel it should be: "edit" right inheriting from "view" right.
Ok, your JIRA issue has it right: Here's the matching JIRA issue: http://jira.xwiki.org/jira/browse/XWIKI-4491
- Asiri
On 10/16/2009 11:53 AM, Guillaume Lerouge wrote:
Hi Devs, right now an user can have edit rights on a page even though he does not have the view right on that page.
This sounds weird to me since that user can still access the page's content by going to the right URL.
Thus I think it would be better to have the view right inherited from the edit right (if an user can edit a page he should also be able to view it).
Is there any drawback to this?
The rights code is already complex as it is, this would only add more if-else branches in a spaghetti code. Plus, it adds another piece of "access rights magic". Although it is logic that users should not be allowed to edit what they can't see, I think that letting the admins set the rights to accomplish this is the right way. -- Sergiu Dumitriu http://purl.org/net/sergiu/
participants (3)
-
Asiri Rathnayake -
Guillaume Lerouge -
Sergiu Dumitriu