{#- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -#} {% extends g.theme.master %} {% do g.register_forge_css('css/forge/deck.css') %} {% do g.register_forge_js('js/jquery-ui.min.js', location='body_top_js') %} {% do g.register_forge_js('js/project_groups.js', location='body_js_tail') %} {% block title %}{{c.project.name}} / User Permissions {% endblock %} {% block header %}User Permissions{% endblock %} {% set private_projects = c.project.neighborhood.features.get('private_projects') %} {% macro show_perms_for_role(role) %} {% endmacro %} {% macro group_icon(icon) %}

{{ g.icons[icon].render(tag='span', extra_css='x24') }}

{% endmacro %} {% block content %}

Project permissions are assigned to groups of users. Add users to a group appropriate to the role they fill in your project. more...

{% for role in c.project.named_roles %} {% endfor %}
Group Users Permissions
{{role.name}}{{group_icon('group')}} {% if role.name not in ['Admin', 'Developer', 'Member'] %} Remove {% endif %}
    {% for r in role.parent_roles() if r.name %}
  • All users in {{ r.name }} group
  • {% endfor %} {% for r in role.users_with_role() %}
  • {{ g.icons['perm_delete'].render( title=('%s (%s)' % (r.user.display_name | escape, r.user.username | escape)) | safe, show_title=True, extra_css='deleter', **{'data-user': r.user.username}) }}
  • {% endfor %}
  • cancel
  • {{ g.icons['add'].render(show_title=True) }}
{{show_perms_for_role(role)}}
Authenticated{{group_icon('secure')}}
Any logged in user
{{show_perms_for_role(auth_role)}}
Anonymous{{group_icon('unsecure')}}
Any user including those not logged in
{{show_perms_for_role(anon_role)}}
{{ g.icons['add'].render(href="new", title="Add a new Group", show_title=True, extra_css='admin_modal') }}
{% endblock %} {% block extra_js %} {% endblock %}