|
a/Allura/allura/model/project.py |
|
b/Allura/allura/model/project.py |
|
... |
|
... |
564 |
home_app.show_discussion = False
|
564 |
home_app.show_discussion = False
|
565 |
home_app.show_left_bar = False
|
565 |
home_app.show_left_bar = False
|
566 |
new_acl = [ ace
|
566 |
new_acl = [ ace
|
567 |
for ace in home_app.config.acl
|
567 |
for ace in home_app.config.acl
|
568 |
if not (
|
568 |
if not (
|
569 |
ace.role_id==role_auth._id and ace.access==M.ACE.ALLOW and ace.permission in ('create', 'edit', 'delete')
|
569 |
ace.role_id==role_auth._id and ace.access==M.ACE.ALLOW and ace.permission in ('create', 'edit', 'delete', 'unmoderated_post')
|
570 |
)
|
570 |
)
|
571 |
]
|
571 |
]
|
572 |
new_acl.append(M.ACE.allow(role_member._id, 'create'))
|
572 |
new_acl.append(M.ACE.allow(role_member._id, 'create'))
|
573 |
new_acl.append(M.ACE.allow(role_member._id, 'update'))
|
573 |
new_acl.append(M.ACE.allow(role_member._id, 'update'))
|
|
|
574 |
new_acl.append(M.ACE.allow(role_member._id, 'unmoderated_post'))
|
574 |
home_app.config.acl = map(dict, new_acl)
|
575 |
home_app.config.acl = map(dict, new_acl)
|
575 |
self.database_configured = True
|
576 |
self.database_configured = True
|
576 |
self.notifications_disabled = False
|
577 |
self.notifications_disabled = False
|
577 |
ThreadLocalORMSession.flush_all()
|
578 |
ThreadLocalORMSession.flush_all()
|
578 |
|
579 |
|