OSDN Git Service

Replace some of 'isBlogAdmin' to 'blogAdminRights' for giving rights for Super-Admin...
[nucleus-jp/nucleus-jp-ancient.git] / 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;
-               }
        }
        
        /**