mirror of https://gitee.com/bigwinds/arangodb
Fixed dashboard behaviour in dashboard. #1259
This commit is contained in:
parent
063f498e7f
commit
4e20eeab33
|
@ -309,6 +309,7 @@
|
||||||
|
|
||||||
grunt.registerTask('default', [
|
grunt.registerTask('default', [
|
||||||
'sass:dev',
|
'sass:dev',
|
||||||
|
'jshint:default',
|
||||||
'replace',
|
'replace',
|
||||||
'concat_in_order:sharedLibs',
|
'concat_in_order:sharedLibs',
|
||||||
'concat_in_order:default',
|
'concat_in_order:default',
|
||||||
|
|
|
@ -2439,7 +2439,7 @@ window.StatisticsCollection = Backbone.Collection.extend({
|
||||||
|
|
||||||
//check if user has _system permission
|
//check if user has _system permission
|
||||||
var authorized = this.options.database.hasSystemAccess();
|
var authorized = this.options.database.hasSystemAccess();
|
||||||
if (authorized === undefined) {
|
if (!authorized) {
|
||||||
$('.contentDiv').remove();
|
$('.contentDiv').remove();
|
||||||
$('.headerBar').remove();
|
$('.headerBar').remove();
|
||||||
$('.dashboard-headerbar').remove();
|
$('.dashboard-headerbar').remove();
|
||||||
|
|
|
@ -712,7 +712,7 @@
|
||||||
|
|
||||||
//check if user has _system permission
|
//check if user has _system permission
|
||||||
var authorized = this.options.database.hasSystemAccess();
|
var authorized = this.options.database.hasSystemAccess();
|
||||||
if (authorized === undefined) {
|
if (!authorized) {
|
||||||
$('.contentDiv').remove();
|
$('.contentDiv').remove();
|
||||||
$('.headerBar').remove();
|
$('.headerBar').remove();
|
||||||
$('.dashboard-headerbar').remove();
|
$('.dashboard-headerbar').remove();
|
||||||
|
|
Loading…
Reference in New Issue