|
18 | 18 | {% set delete_url = h.url_for('querytool_delete', querytool='/' + querytool.name) %} |
19 | 19 | {% set member_type = h.get_user_permission_type(c.userobj, querytool.group) %} |
20 | 20 |
|
21 | | - {% if h.get_groups_for_user(c.userobj, querytool.group) and ((member_type == 'member' and querytool.private != True) or member_type == 'admin') or c.userobj.sysadmin %} |
| 21 | + {% if h.get_groups_for_user(c.userobj, querytool.group) and ((member_type == 'member' and querytool.private != True) or member_type == 'admin') %} |
22 | 22 | <div class="applicaitons-box"> |
23 | 23 |
|
24 | 24 | <div class="thumb"> |
@@ -48,7 +48,7 @@ <h2>{{ querytool.title }}</h2> |
48 | 48 | {% set user_permission = h.get_groups_for_user(c.userobj, querytool.group) %} |
49 | 49 | {% set user_type = h.get_user_permission_type(c.userobj, querytool.group) %} |
50 | 50 |
|
51 | | - {% if user_type in ['admin', 'editor'] or user_permission and user_type != 'member' or c.userobj.sysadmin %} |
| 51 | + {% if user_type in ['admin', 'editor'] or user_permission and user_type != 'member' %} |
52 | 52 | <li><a class="btn btn-minimal" role="button" href="{{ edit_data_url}}" type="submit" name="edit"><span class="fa fa-pencil" aria-hidden="true"></span> {{ _('Edit filters and data') }}</a></li> |
53 | 53 | <li><a class="btn btn-minimal" role="button" href="{{ edit_visualizations_url}}" type="submit" name="edit"><span class="fa fa-pencil" aria-hidden="true"></span> {{ _('Edit visualizations') }}</a></li> |
54 | 54 | <li><a class="btn btn-minimal" role="button" href="{{ h.url_for('querytool_public_read', name=querytool.name) }}" type="submit" name="view"><span class="fa fa-eye" aria-hidden="true"></span> {{ _('View') }}</a></li> |
@@ -92,7 +92,7 @@ <h2>{{ querytool.title }}</h2> |
92 | 92 | {% set user_permission = h.get_groups_for_user(c.userobj, querytool.group) %} |
93 | 93 | {% set user_type = h.get_user_permission_type(c.userobj, querytool.group) %} |
94 | 94 |
|
95 | | - {% if user_type in ['admin', 'editor'] or user_permission and user_type != 'member' or c.userobj.sysadmin %} |
| 95 | + {% if user_type in ['admin', 'editor'] or user_permission and user_type != 'member' %} |
96 | 96 | <li><a class="btn" href="{{ edit_data_url}}" type="submit" name="edit"><span class="fa fa-pencil" aria-hidden="true"></span> {{ _('Edit filters and data') }}</a></li> |
97 | 97 | <li><a class="btn" href="{{ edit_visualizations_url}}" type="submit" name="edit"><span class="fa fa-pencil" aria-hidden="true"></span> {{ _('Edit visualizations') }}</a></li> |
98 | 98 | <li><a class="btn" href="{{ h.url_for('querytool_public_read', name=querytool.name) }}" type="submit" name="view"><span class="fa fa-eye" aria-hidden="true"></span> {{ _('View') }}</a></li> |
|
0 commit comments