@@ -11,6 +11,47 @@ accordingly. Note that there is information about upgrade procedures in the
1111Migrating from 0.6 to 0.7
1212=========================
1313
14+ 0.7.0 Permission setup
15+ ----------------------
16+
17+ 0.7 automatically sets up the Edit and View Permissions for all classes,
18+ thus you don't need to do so. Feel free to remove the code::
19+
20+ # Add new Permissions for this schema
21+ for cl in 'issue', 'file', 'msg', 'user', 'query', 'keyword':
22+ db.security.addPermission(name="Edit", klass=cl,
23+ description="User is allowed to edit "+cl)
24+ db.security.addPermission(name="View", klass=cl,
25+ description="User is allowed to access "+cl)
26+
27+ from your ``dbinit.py``.
28+
29+
30+ 0.7.0 Permission assignments
31+ ----------------------------
32+
33+ Due to a change in the rendering of web widgets, permissions are now
34+ checked on Classes where they previously weren't (this is a good thing).
35+
36+ You will need to add some additional Permission assignments for your
37+ regular users, or some displays will break. After the following in your
38+ tracker's ``dbinit.py``::
39+
40+ # Assign the access and edit Permissions for issue, file and message
41+ # to regular users now
42+ for cl in 'issue', 'file', 'msg', 'query', 'keyword':
43+ p = db.security.getPermission('View', cl)
44+ db.security.addPermissionToRole('User', p)
45+ p = db.security.getPermission('Edit', cl)
46+ db.security.addPermissionToRole('User', p)
47+
48+ add::
49+
50+ for cl in 'priority', 'status':
51+ p = db.security.getPermission('View', cl)
52+ db.security.addPermissionToRole('User', p)
53+
54+
14550.7.0 Extending the cgi interface
1556---------------------------------
1657
@@ -24,6 +65,7 @@ password validation source`__ example.
2465__ customizing.html#defining-new-web-actions
2566__ customizing.html#using-an-external-password-validation-source
2667
68+
27690.7.0 Getting the current user id
2870---------------------------------
2971
0 commit comments