OSDN Git Service

FIX: super-admin disallowed from uploading files if not on any teamlists.
authorshizuki <shizuki@1ca29b6e-896d-4ea0-84a5-967f57386b96>
Sun, 19 Jul 2009 05:25:41 +0000 (05:25 +0000)
committershizuki <shizuki@1ca29b6e-896d-4ea0-84a5-967f57386b96>
Sun, 19 Jul 2009 05:25:41 +0000 (05:25 +0000)
git-svn-id: https://svn.sourceforge.jp/svnroot/nucleus-jp/nucleus-jp/trunk@1042 1ca29b6e-896d-4ea0-84a5-967f57386b96

utf8/nucleus/documentation/history.html
utf8/nucleus/media.php

index 12ab6fc..6d19c35 100755 (executable)
@@ -57,6 +57,7 @@
     <li>\r
         <strong>Nucleus v3.5 (SVN)</strong>\r
         <ul>\r
+               <li>FIX: super-admin disallowed from uploading files if not on any teamlists. (ftruscot)</li>\r
                        <li>ADD: $CONF['ActivationDays'] variable to control days before activation expire. Manually set in config.php if needed (no admin interface). (ftruscot)</li>\r
                        <li>CHANGE:Notify ITEM link after karma votes(ACTION.php). (shizuki)</li>\r
                        <li>CHANGE:Remove bsendping col from nucleus_blog table(install.sql/upgrade3.5.php). (shizuki)</li>\r
index 29c33b4..f1f4771 100755 (executable)
@@ -48,7 +48,7 @@ if (!$member->isLoggedIn()) {
 // check if member is on at least one teamlist
 $query = 'SELECT * FROM ' . sql_table('team'). ' WHERE tmember=' . $member->getID();
 $teams = sql_query($query);
-if (sql_num_rows($teams) == 0)
+if (sql_num_rows($teams) == 0 && !$member->isAdmin())
        media_doError(_ERROR_DISALLOWEDUPLOAD);
 
 // get action