OSDN Git Service

Replace some of 'isBlogAdmin' to 'blogAdminRights' for giving rights for Super-Admin...
authorsakamocchi <sakamocchi@1ca29b6e-896d-4ea0-84a5-967f57386b96>
Wed, 19 Jan 2011 08:47:40 +0000 (08:47 +0000)
committersakamocchi <sakamocchi@1ca29b6e-896d-4ea0-84a5-967f57386b96>
Wed, 19 Jan 2011 08:47:40 +0000 (08:47 +0000)
git-svn-id: https://svn.sourceforge.jp/svnroot/nucleus-jp/nucleus-jp/trunk@1096 1ca29b6e-896d-4ea0-84a5-967f57386b96

utf8/nucleus/libs/ACTIONS.php

index 5b36429..ab3a67b 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
  * Nucleus: PHP/MySQL Weblog CMS (http://nucleuscms.org/)
- * Copyright (C) 2002-2010 The Nucleus Group
+ * Copyright (C) 2002-2011 The Nucleus Group
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
@@ -17,7 +17,7 @@
  * SKIN::getAllowedActionsForType($type) method
  *
  * @license http://nucleuscms.org/license.txt GNU General Public License
- * @copyright Copyright (C) 2002-2010 The Nucleus Group
+ * @copyright Copyright (C) 2002-2011 The Nucleus Group
  * @version $Id$
  * @version $NucleusJP: ACTIONS.php,v 1.8 2007/04/19 06:05:55 kimitake Exp $
  */
@@ -251,7 +251,7 @@ class ACTIONS extends BaseActions {
                        // use current blog
                        $blogid = $blog->getID();
 
-               return $member->isBlogAdmin($blogid);
+               return $member->blogAdminRights($blogid);
        }
        
        /**
@@ -427,9 +427,7 @@ class ACTIONS extends BaseActions {
         */
        function parse_addlink() {
                global $CONF, $member, $blog;
-               if ($member->isLoggedIn() && $member->isTeamMember($blog->blogid) ) {
                        echo $CONF['AdminURL'].'bookmarklet.php?blogid='.$blog->blogid;
-               }
        }
        
        /**