1.1 --- a/pages/HelpOnMoinForms Sun Jan 20 18:24:06 2013 +0100
1.2 +++ b/pages/HelpOnMoinForms Sun Jan 20 19:47:48 2013 +0100
1.3 @@ -250,28 +250,24 @@
1.4 By default, the usage of forms and the storage of form data is restricted according to the permissions granted for a given user for the page on which each form appears. This is summarised in the following table:
1.5
1.6 || '''Page Permission''' || '''Access to Form and Form Data''' ||
1.7 +|| `admin` || May read form data ||
1.8 || `delete` || May delete form data (since the entire page may also be deleted) ||
1.9 || `read` || ''Permission grants no additional access'' ||
1.10 || `write` || May submit forms and store form data ||
1.11
1.12 Thus, on any page for which a user only has read access, any form will by default be visible but not usable for submitting data.
1.13
1.14 -However, it is possible to change these restrictions by specifying an `access` keyword which defines the permissions that an unprivileged user has when using the form. For example:
1.15 +However, it is possible to override these restrictions by specifying an `access` keyword which defines a different set of permissions that applies to a user when using the form. For example:
1.16
1.17 {{{{
1.18 -{{{#!form fragment=exampleform5 access=All:write
1.19 +{{{#!form fragment=exampleform5 access='All:write'
1.20 ...
1.21 }}}
1.22 }}}}
1.23
1.24 -Here, unprivileged users - those who may not change the page and thus change the form definition - may submit the form and store their submissions. The following table summarises the different `access` options:
1.25 +Here, unprivileged users - those who may have been forbidden from changing the page and thus changing the form definition - may submit the form and store their submissions. The above table also summarises the permissions that may be specified along with their effects.
1.26
1.27 -|| '''Access Option''' || '''Access to Form and Form Data''' ||
1.28 -|| `delete` || May delete form data ||
1.29 -|| `read` || May read form data ||
1.30 -|| `write` || May submit forms and store form data ||
1.31 -
1.32 -The `access` keyword supports conventional [[HelpOnAccessControlLists|ACL]] syntax.
1.33 +The `access` keyword supports the conventional [[HelpOnAccessControlLists|ACL]] syntax, and where spaces are present in the specified value, quotes should be placed around the value itself and not the `access` keyword and equals sign as well.
1.34
1.35 === Extending the Default Form Handler ===
1.36