Skip to content
Snippets Groups Projects
Commit 1be1c57b authored by Vincent Petry's avatar Vincent Petry
Browse files

Corretly hide "no permissions" message in controls in viewer mode

Fixes #5622
parent 8f50d768
No related branches found
No related tags found
No related merge requests found
...@@ -264,6 +264,9 @@ var FileList={ ...@@ -264,6 +264,9 @@ var FileList={
$('.creatable').toggleClass('hidden', !isCreatable); $('.creatable').toggleClass('hidden', !isCreatable);
$('.notCreatable').toggleClass('hidden', isCreatable); $('.notCreatable').toggleClass('hidden', isCreatable);
} }
else{
$('.creatable, .notCreatable').addClass('hidden');
}
}, },
/** /**
* Enables/disables viewer mode. * Enables/disables viewer mode.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment