diff --git a/lib/Alchemy/Phrasea/Helper/User/Edit.php b/lib/Alchemy/Phrasea/Helper/User/Edit.php
index 035d9afce4..08874ae68f 100644
--- a/lib/Alchemy/Phrasea/Helper/User/Edit.php
+++ b/lib/Alchemy/Phrasea/Helper/User/Edit.php
@@ -131,10 +131,7 @@ class Edit extends \Alchemy\Phrasea\Helper\Helper
sum(remain_dwnld) as remain_dwnld,
sum(month_dwnld_max) as month_dwnld_max,
- mask_xor as maskxordec,
- bin(mask_xor) as maskxorbin,
- mask_and as maskanddec,
- bin(mask_and) as maskandbin
+ sum(mask_and + mask_xor) as masks
FROM (usr u, bas b, sbas s)
LEFT JOIN (basusr bu)
@@ -206,8 +203,6 @@ class Edit extends \Alchemy\Phrasea\Helper\Helper
{
$this->base_id = (int) $this->request->get('base_id');
-// $this->base_id = (int) $parm['base_id'];
-
$sql = "SELECT u.usr_id, restrict_dwnld, remain_dwnld, month_dwnld_max
FROM (usr u INNER JOIN basusr bu ON u.usr_id = bu.usr_id)
WHERE u.usr_id = " . implode(' OR u.usr_id = ', $this->users) . "
diff --git a/templates/web/admin/editusers.twig b/templates/web/admin/editusers.twig
index fcd8a2b340..aaaedf4007 100644
--- a/templates/web/admin/editusers.twig
+++ b/templates/web/admin/editusers.twig
@@ -377,19 +377,31 @@
- 
+ {% if rights['restrict_dwnld'] > 0 %}
+ 
+ {% else %}
+ 
+ {% endif %}
|
- 
+ {% if rights['time_limited'] > 0 %}
+ 
+ {% else %}
+ 
+ {% endif %}
|
- 
+ {% if rights['masks'] > 0 %}
+ 
+ {% else %}
+ 
+ {% endif %}
|
diff --git a/templates/web/prod/Story/Create.html.twig b/templates/web/prod/Story/Create.html.twig
index 86f82d0112..af02d19bde 100644
--- a/templates/web/prod/Story/Create.html.twig
+++ b/templates/web/prod/Story/Create.html.twig
@@ -10,9 +10,6 @@
-
-
-
diff --git a/templates/web/prod/WorkZone/Basket.html.twig b/templates/web/prod/WorkZone/Basket.html.twig
index c5cf7005cb..efdeb2d6c9 100644
--- a/templates/web/prod/WorkZone/Basket.html.twig
+++ b/templates/web/prod/WorkZone/Basket.html.twig
@@ -33,6 +33,12 @@
{% endif %}
+
+ {% if user.ACL().has_right('push') %}
+
+ {% endif %}
{% if user.ACL().has_right('bas_chupub') %}
{% endif %}
+
+ {% if user.ACL().has_right('push') %}
+
+ {% endif %}
{% if user.ACL().has_right('bas_chupub') %}