Browse Source

Bug #2485 fixed. A student can edit a file through url into documents tool after visit his/her group

Juan Carlos Raña 14 years ago
parent
commit
1e159a715d
1 changed files with 1 additions and 0 deletions
  1. 1 0
      main/document/document.php

+ 1 - 0
main/document/document.php

@@ -182,6 +182,7 @@ if (isset($_SESSION['_gid']) && $_SESSION['_gid'] != '') {
 	}
 	$_SESSION['group_member_with_upload_rights'] = $group_member_with_upload_rights;
 } else {
+	$_SESSION['group_member_with_upload_rights'] = false;
 	$to_group_id = 0;
 	$req_gid = '';
 }