aboutsummaryrefslogtreecommitdiff
path: root/video.module
diff options
context:
space:
mode:
Diffstat (limited to 'video.module')
-rw-r--r--video.module4
1 files changed, 3 insertions, 1 deletions
diff --git a/video.module b/video.module
index 1e687d4..cbc0251 100644
--- a/video.module
+++ b/video.module
@@ -218,7 +218,7 @@ function video_feed() {
* array of permissions
*/
function video_perm() {
- $array = array('create video', 'access video', 'administer video', 'download video', 'view play counter', 'view download counter');
+ $array = array('create video', 'access video', 'administer video', 'download video', 'view play counter', 'view download counter', 'edit own video');
return $array;
}
@@ -337,6 +337,8 @@ function video_access($op, $node) {
return $node->status; // see book.module for reference
case 'create':
return user_access('create video');
+ case 'update':
+ return user_access('edit own video') && ($user->uid == $node->uid);
}
}