• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

allura


Commit MetaInfo

Revisiónae0468986ff1a10b7f0944421e8ec3d4e474dcd5 (tree)
Tiempo2011-04-28 03:48:21
AutorRick Copeland <rcopeland@geek...>
CommiterRick Copeland

Log Message

[#1909] Handle cases where our database contains old, unknown permissions in the ACL

Signed-off-by: Rick Copeland <rcopeland@geek.net>

Cambiar Resumen

Diferencia incremental

--- a/Allura/allura/app.py
+++ b/Allura/allura/app.py
@@ -291,7 +291,11 @@ class DefaultAdminController(BaseController):
291291 permissions = dict((p, []) for p in self.app.permissions)
292292 for ace in self.app.config.acl:
293293 if ace.access == model.ACE.ALLOW:
294- permissions[ace.permission].append(ace.role_id)
294+ try:
295+ permissions[ace.permission].append(ace.role_id)
296+ except KeyError:
297+ # old, unknown permission
298+ pass
295299 return dict(
296300 app=self.app,
297301 allow_config=has_access(c.project, 'admin')(),