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