Short description

Since we can use the action copy page we can handle template pages differently.

If a template page has acls and the user has no admin rights he is not able to store the newly created page with that acl line.

That can be done different. The template page can be copied to the new page and then loaded into the editor. Of course we have to check if it makes sense for the current user to use the choosen template (read, write rights).

And we need to check if the user has aborted the edit and the page is still copy of the template page. -- ReimarBauer 2008-06-09 07:42:08

Ok another thing: It seems odd to me to even want copying ACLs from a template, does this need to be configurable?

  1. use case: on wireless.kernel.org I mark templates read-only so people don't muck with them, but the page they create from them should obviously be writable.
    • This use case would indeed conflict with the table below. -- AlexanderSchremmer

      • Yes, the table below is modeled after the other use case. -- JohannesBerg

  2. use case: (what is the use case for copying ACLs with the template?)
    • a homepage template which grants the user admin rights for his homepage or a template page if hierarchical acls enabled to create pages with some default rights or M!yPages action

Also think about that in terms of the storage abstraction: which metadata from a revision is copied when a page is used as a template? Only that metadata that was traditionally embedded in the page? The Page/PageEditor code from the storage branch embeds _all_ metadata in the raw page text (for editing/action=raw), but I think it probably shouldn't do that forever.


Operation

Default Rights

Rights from template

Operation permitted

create new page (without ACL)

write, admin

N/A

(./)

create new page (without ACL)

admin

N/A

{X}

create new page (without ACL)

(neither write nor admin)

N/A

{X}

create new page (with ACL)

write, admin

N/A

(./)

create new page (with ACL)

write

N/A

{X}

create new page (with ACL)

(neither write nor admin)

N/A

{X}

change ACLs

admin

N/A

(./)

change ACLs

(not admin)

N/A

{X}

create new page from template (ACL copied from template)

write, admin

(includes write)

(./)

create new page from template (ACL copied from template)

write

(includes write)

(./)

create new page from template (ACL copied from template)

(neither write nor admin)

*

{X}

create new page from template (ACL copied from template & changed)

write, admin

(includes write)

(./)

create new page from template (ACL copied from template & changed)

write

(includes write)

{X}

create new page from template (ACL copied from template & changed)

(neither write nor admin)

*

{X}

create new page from template (ACL not copied) (use case 1 above)

*

N/A

see create new page (without ACL)


CategoryFeatureRequest

MoinMoin: FeatureRequests/NewPageFromTemplatePage (last edited 2008-06-21 09:13:24 by ReimarBauer)