~ubuntu-branches/ubuntu/oneiric/moin/oneiric-security

« back to all changes in this revision

Viewing changes to MoinMoin/security/_tests/test_security.py

  • Committer: Bazaar Package Importer
  • Author(s): Jamie Strandboge
  • Date: 2010-03-30 12:55:34 UTC
  • mfrom: (0.1.17 sid)
  • Revision ID: james.westby@ubuntu.com-20100330125534-4c2ufc1rok24447l
Tags: 1.9.2-2ubuntu1
* Merge from Debian testing (LP: #521834). Based on work by Stefan Ebner.
  Remaining changes:
 - Remove python-xml from Suggests field, the package isn't anymore in
   sys.path.
 - Demote fckeditor from Recommends to Suggests; the code was previously
   embedded in moin, but it was also disabled, so there's no reason for us
   to pull this in by default currently. Note: This isn't necessary anymore
   but needs a MIR for fckeditor, so postpone dropping this change until
   lucid+1
* debian/rules:
  - Replace hardcoded python2.5 with python* and hardcore python2.6 for ln
* debian/control.in: drop versioned depends on cdbs

Show diffs side-by-side

added added

removed removed

Lines of Context:
197
197
        """ security: applying acl by user name"""
198
198
        # This acl string...
199
199
        acl_rights = [
 
200
            "-MinusGuy:read "
 
201
            "+MinusGuy:read "
 
202
            "+PlusGuy:read "
 
203
            "-PlusGuy:read "
200
204
            "Admin1,Admin2:read,write,delete,revert,admin  "
201
205
            "Admin3:read,write,admin  "
202
206
            "JoeDoe:read,write  "
226
230
            # All other users - every one not mentioned in the acl lines
227
231
            ('All', ('read', )),
228
232
            ('Anonymous', ('read', )),
 
233
            # we check whether ACL processing stops for a user/right match
 
234
            # with ACL modifiers
 
235
            ('MinusGuy', ()),
 
236
            ('PlusGuy', ('read', )),
229
237
            )
230
238
 
231
239
        # Check rights