Skip to content

Commit

Permalink
code review
Browse files Browse the repository at this point in the history
  • Loading branch information
rdebleu committed Oct 22, 2023
1 parent d08fdbe commit bf71261
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
17 changes: 9 additions & 8 deletions db/access.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,12 @@
defined('MOODLE_INTERNAL') || die();

$capabilities = [
'repository/s3bucket:view' => ['captype' => 'read', 'contextlevel' => CONTEXT_MODULE,
'archetypes' => ['editingteacher' => CAP_ALLOW, 'manager' => CAP_ALLOW], ],
'repository/s3bucket:addinstance' => ['captype' => 'write', 'contextlevel' => CONTEXT_SYSTEM,
'archetypes' => ['manager' => CAP_ALLOW], ],
'repository/s3bucket:addinstance' => ['captype' => 'write', 'contextlevel' => CONTEXT_USER,
'archetypes' => ['editingteacher' => CAP_ALLOW, 'manager' => CAP_ALLOW], ],
'repository/s3bucket:addinstance' => ['captype' => 'write', 'contextlevel' => CONTEXT_COURSE,
'archetypes' => ['editingteacher' => CAP_ALLOW, 'manager' => CAP_ALLOW], ], ];
'repository/s3bucket:view' => [
'captype' => 'read',
'contextlevel' => CONTEXT_MODULE,
'archetypes' => [
'editingteacher' => CAP_ALLOW,
'manager' => CAP_ALLOW,
],
],
];
1 change: 0 additions & 1 deletion lang/en/repository_s3bucket.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,5 @@
$string['pluginname_help'] = 'AWS S3 bucket repository';
$string['privacy:metadata'] = 'The AWS S3 repository does not store any personal data.';
$string['privacy:metadata'] = 'The AWS S3 bucket repository plugin does not store any personal data, but can transmit files from Moodle to AWS.';
$string['s3bucket:addinstance'] = 'Add a new AWS S3 bucket instance';
$string['s3bucket:view'] = 'View AWS S3 bucket repository';
$string['storageclass'] = 'Storage class';

0 comments on commit bf71261

Please sign in to comment.