Skip to content
Browse files

MDL-37852 repository: Fixed missing capability error

  • Loading branch information...
1 parent 103efbc commit c512e94e7c972c2ef398d49283edbbdc0cfe8ea1 @FMCorz FMCorz committed with damyon Mar 7, 2013
Showing with 0 additions and 4 deletions.
  1. +0 −4 repository/manage_instances.php
View
4 repository/manage_instances.php
@@ -158,8 +158,6 @@
if ($instance->readonly) {
throw new repository_exception('readonlyinstance', 'repository');
}
- // Check if we can read the content of the repository, if not exception is thrown.
- repository::check_capability($context->id, $instance);
$instancetype = repository::get_type_by_id($instance->options['typeid']);
$classname = 'repository_' . $instancetype->get_typename();
$configs = $instance->get_instance_option_names();
@@ -216,8 +214,6 @@
if ($instance->readonly) {
throw new repository_exception('readonlyinstance', 'repository');
}
- // Check if we can read the content of the repository, if not exception is thrown.
- repository::check_capability($context->id, $instance);
if ($sure) {
if (!confirm_sesskey()) {
print_error('confirmsesskeybad', '', $baseurl);

0 comments on commit c512e94

Please sign in to comment.
Something went wrong with that request. Please try again.