##// END OF EJS Templates
When using apply to children flag in repo group permission...
When using apply to children flag in repo group permission change prompt, RhodeCode only applied this to user groups if repository was private. Only thing that shouldn't be allowed is to change the DEFAULT user permission when repository is private.

File last commit:

r3901:6cc17e42 beta
r3974:39798d53 default
Show More
perms_summary.html
77 lines | 3.3 KiB | text/html | HtmlLexer
fixed sort of permissions summary it's now perm+name...
r3666 ## snippet for displaying permissions overview for users
Iteration on default permissions...
r3736 ## usage:
## <%namespace name="p" file="/base/perms_summary.html"/>
## ${p.perms_summary(c.perm_user.permissions)}
fixed sort of permissions summary it's now perm+name...
r3666
Don't show empty permissions for users, only for admins
r3901 <%def name="perms_summary(permissions, show_all=False)">
fixed sort of permissions summary it's now perm+name...
r3666 <div id="perms" class="table">
%for section in sorted(permissions.keys()):
<div class="perms_section_head">${section.replace("_"," ").capitalize()}</div>
%if not permissions[section]:
<span class="empty_data">${_('No permissions defined yet')}</span>
%else:
<div id='tbl_list_wrap_${section}' class="yui-skin-sam">
<table id="tbl_list_${section}">
Don't show empty permissions for users, only for admins
r3901 ## global permission box
fixed sort of permissions summary it's now perm+name...
r3666 %if section == 'global':
New default permissions definition for user group create
r3734 <thead>
<tr>
<th colspan="2" class="left">${_('Permission')}</th>
<th class="left">${_('Edit Permission')}</th>
</thead>
<tbody>
Iteration on default permissions...
r3736 %for k in permissions[section]:
fixed sort of permissions summary it's now perm+name...
r3666 <tr>
New default permissions definition for user group create
r3734 <td colspan="2">
fixed sort of permissions summary it's now perm+name...
r3666 ${h.get_permission_name(k)}
</td>
<td>
<a href="${h.url('edit_permission', id='default')}">${_('edit')}</a>
</td>
</tr>
%endfor
New default permissions definition for user group create
r3734 </tbody>
fixed sort of permissions summary it's now perm+name...
r3666 %else:
New default permissions definition for user group create
r3734 <thead>
<tr>
<th class="left">${_('Name')}</th>
<th class="left">${_('Permission')}</th>
<th class="left">${_('Edit Permission')}</th>
</thead>
<tbody>
fixed sort of permissions summary it's now perm+name...
r3666 %for k, section_perm in sorted(permissions[section].items(), key=lambda s: s[1]+s[0].lower()):
Don't show empty permissions for users, only for admins
r3901 %if section_perm.split('.')[-1] != 'none' or show_all:
fixed sort of permissions summary it's now perm+name...
r3666 <tr>
<td>
%if section == 'repositories':
<a href="${h.url('summary_home',repo_name=k)}">${k}</a>
%elif section == 'repositories_groups':
<a href="${h.url('repos_group_home',group_name=k)}">${k}</a>
New default permissions definition for user group create
r3734 %elif section == 'user_groups':
##<a href="${h.url('edit_users_group',id=k)}">${k}</a>
${k}
fixed sort of permissions summary it's now perm+name...
r3666 %endif
</td>
<td>
<span class="perm_tag ${section_perm.split('.')[-1]}">${section_perm}</span>
</td>
<td>
%if section == 'repositories':
<a href="${h.url('edit_repo',repo_name=k,anchor='permissions_manage')}">${_('edit')}</a>
%elif section == 'repositories_groups':
<a href="${h.url('edit_repos_group',group_name=k,anchor='permissions_manage')}">${_('edit')}</a>
New default permissions definition for user group create
r3734 %elif section == 'user_groups':
##<a href="${h.url('edit_users_group',id=k)}">${_('edit')}</a>
fixed sort of permissions summary it's now perm+name...
r3666 %endif
</td>
</tr>
Don't show empty permissions for users, only for admins
r3901 %endif
fixed sort of permissions summary it's now perm+name...
r3666 %endfor
New default permissions definition for user group create
r3734 </tbody>
fixed sort of permissions summary it's now perm+name...
r3666 %endif
</table>
</div>
%endif
%endfor
</div>
</%def>