Skip to content

Commit

Permalink
VID-730: Fix capability to browse private files
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Thies committed Feb 3, 2024
1 parent 93c9ede commit dbfa1d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mod_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function definition() {
try {
if (
!$needssetup &&
!has_capability('videotimeplugin/repository:browsevideos', \context_system::instance())
has_capability('videotimeplugin/repository:browseownvideos', \context_system::instance())
) {
$api = new \videotimeplugin_repository\api($USER->id);
}
Expand Down
4 changes: 2 additions & 2 deletions tab/texttrack/classes/tab.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ public function update_tracks() {
'lang' => $texttrack['language'],
'uri' => $texttrack['uri'],
'type' => $texttrack['type'],
$texttrack['link']],
);
$texttrack['link'],
]);
foreach ($this->parse_texttrack(file_get_contents($texttrack['link'])) as $text) {
$text['track'] = $trackid;
$DB->insert_record('videotimetab_texttrack_text', $text);
Expand Down

0 comments on commit dbfa1d6

Please sign in to comment.