Skip to content

Commit

Permalink
MDL-38474 repository: Cannot edit a repository instance
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederic Massart committed Mar 15, 2013
1 parent e42861d commit 71ac66e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion repository/manage_instances.php
Expand Up @@ -96,7 +96,7 @@
}

/// Security: we cannot perform any action if the type is not visible or if the context has been disabled
if (!empty($new)){
if (!empty($new) && empty($edit)){
$type = repository::get_type_by_typename($new);
} else if (!empty($edit)){
$instance = repository::get_instance($edit);
Expand Down

0 comments on commit 71ac66e

Please sign in to comment.