All pastes #829838 Raw Edit

Blog module with edit all blogs

public diff v1 · immutable
#829838 ·published 2007-12-23 14:48 UTC
rendered paste body
Index: sites/default/modules/blog/blog.info===================================================================--- sites/default/modules/blog/blog.info	(revision 6215)+++ sites/default/modules/blog/blog.info	(working copy)@@ -5,7 +5,7 @@ version = VERSION  ; Information added by drupal.org packaging script on 2007-12-06-version = "5.5"+version = "5.5-ext" project = "drupal" datestamp = "1196973009" Index: sites/default/modules/blog/blog.module===================================================================--- sites/default/modules/blog/blog.module	(revision 6215)+++ sites/default/modules/blog/blog.module	(working copy)@@ -23,7 +23,7 @@  * Implementation of hook_perm().  */ function blog_perm() {-  return array('edit own blog');+  return array('edit own blog', 'edit all blogs'); }  /**@@ -32,6 +32,10 @@ function blog_access($op, $node) {   global $user; +  if (user_access('edit all blogs')) {+    return TRUE;+  }+   if ($op == 'create') {     return user_access('edit own blog') && $user->uid;   }