forked from elan-ev/studip-opencast-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only add owner video perm to uploader or scheduler of the recording
Currently, all dozent get write perms to an uploaded course video or to a scheduled recording. This patch changes this behaviour based on elan-ev#1216. close elan-ev#1216
- Loading branch information
Showing
5 changed files
with
52 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
|
||
class AddUserToScheduledRecordings extends Migration | ||
{ | ||
public function description() | ||
{ | ||
return 'Add user id to oc_scheduled_recordings to identify the user who scheduled the recording'; | ||
} | ||
|
||
public function up() | ||
{ | ||
$db = DBManager::get(); | ||
|
||
$db->exec('ALTER TABLE `oc_scheduled_recordings` | ||
ADD COLUMN `user_id` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NULL AFTER `series_id`'); | ||
} | ||
|
||
public function down() | ||
{ | ||
$db = DBManager::get(); | ||
|
||
$db->exec('ALTER TABLE `oc_scheduled_recordings` DROP COLUMN `user_id`'); | ||
} | ||
} |