Commits

Sebastian Sdorra committed 209fea5

added missing owner check for mapping panel

Comments (0)

Files changed (1)

src/main/resources/sonia/scm/authormapping/sonia.authormapping.js

 
 // register panel
 Sonia.repository.openListeners.push(function(repository, panels){
-  panels.push({
-    xtype: 'authormappingConfigPanel',
-    item: repository
-  });
+  if (Sonia.repository.isOwner(repository)){
+    panels.push({
+      xtype: 'authormappingConfigPanel',
+      item: repository
+    });
+  }
 });