mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Disabled select for not admins
This commit is contained in:
parent
dcfd4a7939
commit
032995fc83
@ -531,4 +531,14 @@ ui_include_time_picker(true);
|
||||
$(window).resize(function() {
|
||||
$("#field_list").css('height', ($(window).height() - 160) + 'px');
|
||||
});
|
||||
|
||||
<?php
|
||||
// If the user is not an admin, not allowed to change the time range
|
||||
if (!users_is_admin()) {
|
||||
?>
|
||||
$("#period_select").attr('disabled', 'disabled');
|
||||
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</script>
|
||||
|
Loading…
x
Reference in New Issue
Block a user