phpBMS

Changeset 756

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
Location:
trunk/phpbms/modules/base
Files:
2 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 = ""; 
  • trunk/phpbms/modules/base/javascript/adminsettings.js

    r716 r756  
    303303    checkForUpdate : function(manual){ 
    304304 
    305         var url; 
     305        var url = APP_PATH; 
     306 
    306307        if(manual) 
    307             url = "adminsettings_ajax.php?m=1"; 
     308            url += "adminsettings_ajax.php?m=1"; 
    308309        else 
    309             url = "adminsettings_ajax.php?m=0"; 
     310            url += "adminsettings_ajax.php?m=0"; 
    310311 
    311312        loadXMLDoc(url, null, false); 
Scanned by Orvant Copyright © 2010 Kreotek, LLC. All Rights reserved.