aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Varesano <fax8@13637.no-reply.drupal.org>2006-06-23 18:59:36 +0000
committerFabio Varesano <fax8@13637.no-reply.drupal.org>2006-06-23 18:59:36 +0000
commit31a14e3c82914cfc68a605ecfc0c52a49a2d9c3b (patch)
tree0ce8091043bd61452cc0c89f9aa865dedfc0c0d4
parent066b2ebd7ab737d7d26e5e9c2f3bd64e72652993 (diff)
downloadvideo-31a14e3c82914cfc68a605ecfc0c52a49a2d9c3b.tar.gz
video-31a14e3c82914cfc68a605ecfc0c52a49a2d9c3b.tar.bz2
Users can now delete their own videos if they have "edit own video" permission.
-rw-r--r--video.module1
1 files changed, 1 insertions, 0 deletions
diff --git a/video.module b/video.module
index b69b20d..1fe2f30 100644
--- a/video.module
+++ b/video.module
@@ -327,6 +327,7 @@ function video_access($op, $node) {
case 'create':
return user_access('create video');
case 'update':
+ case 'delete':
return user_access('edit own video') && ($user->uid == $node->uid);
}
}