diff options
author | Fabio Varesano <fax8@13637.no-reply.drupal.org> | 2006-06-23 18:59:36 +0000 |
---|---|---|
committer | Fabio Varesano <fax8@13637.no-reply.drupal.org> | 2006-06-23 18:59:36 +0000 |
commit | 31a14e3c82914cfc68a605ecfc0c52a49a2d9c3b (patch) | |
tree | 0ce8091043bd61452cc0c89f9aa865dedfc0c0d4 | |
parent | 066b2ebd7ab737d7d26e5e9c2f3bd64e72652993 (diff) | |
download | video-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.module | 1 |
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); } } |