mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
Add AuthenticationServiceProvider
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
{% if error %}
|
||||
<div class="error alert alert-error">{{ error }}</div>
|
||||
{% endif %}
|
||||
{% if feed.is_owner(app['phraseanet.user']) %}
|
||||
{% if feed.is_owner(app['authentication'].getUser()) %}
|
||||
<h2>{% trans 'Edition' %}</h2>
|
||||
<div class="control-group">
|
||||
<div id="pub_icon">
|
||||
@@ -97,7 +97,7 @@
|
||||
<div class="controls">
|
||||
<select id="edit_pub_base_id" class="input-large" name="base_id" {% if feed.is_public() %}disabled="disabled"{% endif %}>
|
||||
<option value="">{% trans 'Non-Restreinte (publique)' %}</option>
|
||||
{% for databox in app['phraseanet.user'].ACL().get_granted_sbas('bas_chupub') %}
|
||||
{% for databox in app['authentication'].getUser().ACL().get_granted_sbas('bas_chupub') %}
|
||||
<optgroup label="{{ databox.get_viewname() }}">
|
||||
{% for collection in databox.get_collections() %}
|
||||
<option {% if feed.get_collection() and feed.get_collection().get_base_id() == collection.get_base_id() %}selected="selected"{% endif %} value="{{ collection.get_base_id() }}">{{ collection.get_name() }}</option>
|
||||
|
@@ -21,7 +21,7 @@
|
||||
<div class="controls">
|
||||
<select id="add_pub_base_id" class="input-large" name="base_id">
|
||||
<option value="">{% trans 'Non-Restreinte (publique)' %}</option>
|
||||
{% for databox in app['phraseanet.user'].ACL().get_granted_sbas('bas_chupub') %}
|
||||
{% for databox in app['authentication'].getUser().ACL().get_granted_sbas('bas_chupub') %}
|
||||
<optgroup label="{{ databox.get_viewname() }}">
|
||||
{% for collection in databox.get_collections() %}
|
||||
<option value="{{ collection.get_base_id() }}">{{ collection.get_name() }}</option>
|
||||
@@ -81,7 +81,7 @@
|
||||
{% endif %}
|
||||
</td>
|
||||
<td valign="center" align="center">
|
||||
{% if feed.is_owner(app['phraseanet.user']) %}
|
||||
{% if feed.is_owner(app['authentication'].getUser()) %}
|
||||
<form class="no-ajax form_publication" action="/admin/publications/feed/{{feed.get_id()}}/delete/" method="post" style="margin:0;">
|
||||
<button class="feed_remover btn btn-mini">{% trans 'boutton::supprimer' %}</button>
|
||||
</form>
|
||||
|
Reference in New Issue
Block a user