chiark / gitweb /
cgi.py, operation.py, list.fhtml: Request-level policy switch.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 16 Mar 2013 00:35:34 +0000 (00:35 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 16 Mar 2013 00:58:13 +0000 (00:58 +0000)
commit4e7866aba8adeec7d5613387d106fb1519108a25
treefdae5ea9e0fd04aaa9ce4c8546046d4506dab2bb
parentd6b72d90e658140961b040e53c009d82fa0f11c9
cgi.py, operation.py, list.fhtml: Request-level policy switch.

  * Introduce a new configuration variable `ALLOWOP' with a policy flag
    for each request type;

  * have `BaseRequest.check' ensure that the corresponding policy flag
    is set;

  * export this policy switch to the template language; and

  * only show widgets for the permitted operations in the web interface.

The commands still appear in the userv/SSH interface, which is a bit
gnarly.
cgi.py
list.fhtml
operation.py