Unverified Commit ec48fa1f authored by Sebastian Castro's avatar Sebastian Castro
Browse files

Fixs header login

parent e9877e4c
......@@ -186,7 +186,7 @@ function handleLogin(bool, rolesObject, mail)
$('#listUserActions li.only-for-admin').hide();
$('#listUserActions li.only-for-user').hide();
if ($.inArray('ROLE_SONATA_ADMIN', roles) > -1) $('#listUserActions li.only-for-admin').show();
if ($.inArray('ROLE_SONATA_ADMIN', roles) > -1 || $.inArray('ROLE_SUPER_ADMIN', roles) > -1) $('#listUserActions li.only-for-admin').show();
if ($.inArray('ROLE_USER', roles) > -1) $('#listUserActions li.only-for-user').show();
// carto is the GoGoCartoJs instance, defined in GeoDirectory/directoy.html.twig
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment