Show More
@@ -185,6 +185,14 b'' | |||||
185 | </thead> |
|
185 | </thead> | |
186 | <tbody> |
|
186 | <tbody> | |
187 | %for k in c.rhodecode_user.permissions[section]: |
|
187 | %for k in c.rhodecode_user.permissions[section]: | |
|
188 | <% | |||
|
189 | if section != 'global': | |||
|
190 | section_perm = c.rhodecode_user.permissions[section].get(k) | |||
|
191 | _perm = section_perm.split('.')[-1] | |||
|
192 | else: | |||
|
193 | _perm = section_perm = None | |||
|
194 | %> | |||
|
195 | %if _perm not in ['none']: | |||
188 | <tr> |
|
196 | <tr> | |
189 | <td> |
|
197 | <td> | |
190 | %if section == 'repositories': |
|
198 | %if section == 'repositories': | |
@@ -199,10 +207,11 b'' | |||||
199 | %if section == 'global': |
|
207 | %if section == 'global': | |
200 | ${h.bool2icon(True)} |
|
208 | ${h.bool2icon(True)} | |
201 | %else: |
|
209 | %else: | |
202 |
<span class="perm_tag ${ |
|
210 | <span class="perm_tag ${_perm}">${section_perm}</span> | |
203 | %endif |
|
211 | %endif | |
204 | </td> |
|
212 | </td> | |
205 | </tr> |
|
213 | </tr> | |
|
214 | %endif | |||
206 | %endfor |
|
215 | %endfor | |
207 | </tbody> |
|
216 | </tbody> | |
208 | </table> |
|
217 | </table> |
General Comments 0
You need to be logged in to leave comments.
Login now