Skip to content

Commit

Permalink
Only rebuild db on permissionadd if required
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcutme committed Dec 30, 2016
1 parent dfb5a00 commit 61ca9d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/MergerSite/MergerSitePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ def actionSitePublish(self, to, privatekey=None, inner_path="content.json", *arg

def actionPermissionAdd(self, to, permission):
super(UiWebsocketPlugin, self).actionPermissionAdd(to, permission)
self.site.storage.rebuildDb()
if permission.startswith("Merger"):
self.site.storage.rebuildDb()


@PluginManager.registerTo("UiRequest")
Expand Down

0 comments on commit 61ca9d6

Please sign in to comment.