#185893 by Rob Loach: only provide blog page for users having permission to blog

6.x
Gábor Hojtsy 2007-11-04 15:45:15 +00:00
parent 0d58aae221
commit 022c9fccaf
1 changed files with 2 additions and 0 deletions

View File

@ -146,6 +146,8 @@ function blog_menu() {
'title' => 'My blog',
'page callback' => 'blog_page_user',
'page arguments' => array(1),
'access callback' => 'user_access',
'access arguments' => array('edit own blog', 1),
'file' => 'blog.pages.inc',
);
$items['blog/%user/feed'] = array(