Mercurial > p > roundup > code
comparison roundup/security.py @ 8120:d4fa7a9c3a21 permission-performance
Remove debug code
| author | Ralf Schlatterbeck <rsc@runtux.com> |
|---|---|
| date | Fri, 18 Oct 2024 16:54:24 +0200 |
| parents | c12377fb4144 |
| children | 2a4d0413bd20 |
comparison
equal
deleted
inserted
replaced
| 8119:c12377fb4144 | 8120:d4fa7a9c3a21 |
|---|---|
| 337 | 337 |
| 338 Note that this functionality is actually implemented by the | 338 Note that this functionality is actually implemented by the |
| 339 Permission.test() method. | 339 Permission.test() method. |
| 340 | 340 |
| 341 ''' | 341 ''' |
| 342 if classname == 'status': | |
| 343 import pdb; pdb.set_trace() | |
| 344 if itemid and classname is None: | 342 if itemid and classname is None: |
| 345 raise ValueError('classname must accompany itemid') | 343 raise ValueError('classname must accompany itemid') |
| 346 # for each of the user's Roles, check the permissions | 344 # for each of the user's Roles, check the permissions |
| 347 # Note that checks with a check method are typically a lot more | 345 # Note that checks with a check method are typically a lot more |
| 348 # expensive than the ones without. So we check the ones without | 346 # expensive than the ones without. So we check the ones without |
