Disallow sharing for guests
This commit is contained in:
parent
d69c02e2bb
commit
e6794e015c
@ -132,7 +132,6 @@ var documentsMain = {
|
|||||||
prepareGrid : function(){
|
prepareGrid : function(){
|
||||||
documentsMain.isEditorMode = false;
|
documentsMain.isEditorMode = false;
|
||||||
documentsMain.UI.hideOverlay();
|
documentsMain.UI.hideOverlay();
|
||||||
$(window).off('beforeunload');
|
|
||||||
},
|
},
|
||||||
|
|
||||||
initSession: function(response) {
|
initSession: function(response) {
|
||||||
@ -152,7 +151,7 @@ var documentsMain = {
|
|||||||
|
|
||||||
documentsMain.UI.showEditor(
|
documentsMain.UI.showEditor(
|
||||||
documentsMain.getNameByFileid(response.file_id),
|
documentsMain.getNameByFileid(response.file_id),
|
||||||
response.permissions & OC.PERMISSION_SHARE
|
response.permissions & OC.PERMISSION_SHARE && !documentsMain.isGuest
|
||||||
);
|
);
|
||||||
var serverFactory = new ServerFactory();
|
var serverFactory = new ServerFactory();
|
||||||
|
|
||||||
@ -226,6 +225,7 @@ var documentsMain = {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
documentsMain.isEditorMode = false;
|
documentsMain.isEditorMode = false;
|
||||||
|
$(window).off('beforeunload');
|
||||||
parent.location.hash = "";
|
parent.location.hash = "";
|
||||||
|
|
||||||
documentsMain.show();
|
documentsMain.show();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user