[service] allow repo_stats for users
authorJulien Cristau <julien.cristau@logilab.fr>
Thu, 23 Oct 2014 13:51:13 +0200
changeset 10034 7d0acf9cb92a
parent 10033 b3a1d15965d9
child 10035 c5bcdece77fb
[service] allow repo_stats for users It's used by the siteinfo view, which is available to managers and users. This change prevents a crash in that view.
sobjects/services.py
--- a/sobjects/services.py	Thu Sep 11 15:17:08 2014 +0200
+++ b/sobjects/services.py	Thu Oct 23 13:51:13 2014 +0200
@@ -30,7 +30,7 @@
     """
 
     __regid__  = 'repo_stats'
-    __select__ = match_user_groups('managers')
+    __select__ = match_user_groups('managers', 'users')
 
     def call(self):
         repo = self._cw.repo # Service are repo side only.