phpBMS

Show
Ignore:
Timestamp:
01/14/10 13:29:02 (2 years ago)
Author:
brieb
Message:
  • fixes #399 widgets with no role were not able to be added for non-administrators
  • fixes #400 pathing of manual update lookup
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/phpbms/modules/base/include/snapshot_include.php

    r602 r756  
    275275 
    276276        if(!$_SESSION["userinfo"]["admin"]) 
    277             $rolewhere = "AND `roleid` IN ('".implode($_SESSION["userinfo"]["roles"])."')"; 
     277            $rolewhere = "AND (`roleid` IN ('".implode($_SESSION["userinfo"]["roles"])."') OR `roleid` ='' OR `roleid` IS NULL)"; 
    278278        else 
    279279            $rolewhere = ""; 
phpBMS vulnerability assesment provided by Orvant Inc. Copyright © 2010 Kreotek, LLC. All Rights reserved.