Mercurial > p > roundup > code
comparison test/test_cgi.py @ 4446:17f796a78647
fix broken tests by adding additional permissions...
...now that we check for permission on the destination class of a
Link/Multilink when searching...
| author | Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net> |
|---|---|
| date | Thu, 21 Oct 2010 19:53:51 +0000 |
| parents | 261c9f913ff7 |
| children | 52e13bf0bb40 |
comparison
equal
deleted
inserted
replaced
| 4445:80a9295a60fd | 4446:17f796a78647 |
|---|---|
| 739 # But users might only view issues where they are on nosy | 739 # But users might only view issues where they are on nosy |
| 740 # (so in the real world the check method would be better) | 740 # (so in the real world the check method would be better) |
| 741 p = self.db.security.addPermission(name='View', klass='iss', | 741 p = self.db.security.addPermission(name='View', klass='iss', |
| 742 properties=("title", "status"), check=lambda x,y,z: True) | 742 properties=("title", "status"), check=lambda x,y,z: True) |
| 743 self.db.security.addPermissionToRole('User', p) | 743 self.db.security.addPermissionToRole('User', p) |
| 744 # Allow all relevant roles access to stat | |
| 745 p = self.db.security.addPermission(name='View', klass='stat') | |
| 746 self.db.security.addPermissionToRole('User', p) | |
| 747 self.db.security.addPermissionToRole('Project', p) | |
| 744 # Allow role "Project" access to whole iss | 748 # Allow role "Project" access to whole iss |
| 745 p = self.db.security.addPermission(name='View', klass='iss') | 749 p = self.db.security.addPermission(name='View', klass='iss') |
| 746 self.db.security.addPermissionToRole('Project', p) | 750 self.db.security.addPermissionToRole('Project', p) |
| 747 | 751 |
| 748 department = self.instance.backend.Class(self.db, "department", | 752 department = self.instance.backend.Class(self.db, "department", |
