Skip to content

Commit 67b8f06

Browse files
author
Richard Jones
committed
Hack hack hack...
. Implemented security assertion idea punted to mailing list (pretty easy to back out if someone comes up with a better idea) so editing "my details" works again. Rationalised and cleaned up the actions in any case. . fixed some more display issues (stuff appearing when it should and shouldn't) . trying a nicer colouring scheme for the top level page . handle no grouping being specified . fixed journaltag so the logged-in user is journalled, not admin!
1 parent bc4dd85 commit 67b8f06

File tree

8 files changed

+253
-132
lines changed

8 files changed

+253
-132
lines changed

TODO.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ New templating TODO:
4949
. query saving
5050
. search "refinement" (pre-fill the search page with the current search
5151
parameters)
52-
. security on actions (only allows/enforces generic Edit perm on the class :()
52+
. web registration of new users by anonymous
5353

5454
ongoing: any bugs
5555

doc/customizing.txt

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Customising Roundup
33
===================
44

5-
:Version: $Revision: 1.15 $
5+
:Version: $Revision: 1.16 $
66

77
.. contents::
88

@@ -926,12 +926,13 @@ The default interfaces define:
926926

927927
- Web Registration
928928
- Web Access
929+
- Web Roles
929930
- Email Registration
930931
- Email Access
931932

932933
These are hooked into the default Roles:
933934

934-
- Admin (Edit everything, View everything)
935+
- Admin (Edit everything, View everything, Web Roles)
935936
- User (Web Access, Email Access)
936937
- Anonymous (Web Registration, Email Registration)
937938

@@ -957,6 +958,19 @@ they register through email.
957958
You may use the ``roundup-admin`` "``security``" command to display the
958959
current Role and Permission configuration in your instance.
959960

961+
Adding a new Permission
962+
~~~~~~~~~~~~~~~~~~~~~~~
963+
964+
When adding a new Permission, you will need to:
965+
966+
1. add it to your instance's dbinit so it is created
967+
2. enable it for the Roles that should have it (verify with
968+
"``roundup-admin security``")
969+
3. add it to the relevant HTML interface templates
970+
4. add it to the appropriate xxxPermission methods on in your instance
971+
interfaces module
972+
973+
960974

961975
-----------------
962976

0 commit comments

Comments
 (0)