17487 Posts in 4473 Topics by 1978 members
Page: 1 2
|Go to End|
Google Summer of Code Hacker
16 August 2007 at 10:07pm Last edited: 17 August 2007 2:03am
> The option to inherit page permissions is evaluated each time that the page is
> accessed, not just when it is created.
> When set to 'inherit', the page should instead evaluate the permissions of the current user
> against the settings of the parent page. You can always change this setting for child pages.
OK, this is an option.. but then we need to extend the interface so that we can set a permission also to inherit. So we have tree states: Enable, disable, inherit.
If we implement that behavior, we need to extend the Permission system because at the moment there is no way to deny a permission. I will add a field "type" to the Permission class which can have three values: -1 (deny), 0 (inherit), 1 (allow).
"Inherit" is not really needed, but I think it's a good thing to support it explicitly.
What about the other question?
My next question is about how the permissions should work. IÃ¢â‚¬â„¢ll create the permission Ã¢â‚¬Å“Edit pageÃ¢â‚¬Â and in the security tab you can then assign this right to the various groups. So what happens now on the access tab of a specific page? LetÃ¢â‚¬â„¢s assume group A has the Ã¢â‚¬Å“Edit pageÃ¢â‚¬Â permission and group B not.
Is A now allowed to edit all pages or just pages where I defined the Edit page permission with that specific page ID? Should it be possible to grant B the right to one specific page without the Ã¢â‚¬Å“global edit pageÃ¢â‚¬Â permission?
GSoC finishes on Monday (pencils down) so please tell me exactly on what you are working and on what I should work next. Currently I'm extending the Permission system to allow "deny permissions".
Page: 1 2
|Go to Top|