Skip to content

Commit

Permalink
Merge pull request #2 from xpressengine/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
smaker committed Feb 14, 2014
2 parents 7e6bf6f + 25f382d commit e0eef37
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
8 changes: 6 additions & 2 deletions classes/module/ModuleHandler.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,12 @@ function ModuleHandler($module = '', $act = '', $mid = '', $document_srl = '', $
$oContext = Context::getInstance();
if($oContext->isSuccessInit == FALSE)
{
$this->error = 'msg_invalid_request';
return;
$logged_info = Context::get('logged_info');
if($logged_info->is_admin != "Y")
{
$this->error = 'msg_invalid_request';
return;
}
}

// Set variables from request arguments
Expand Down
4 changes: 2 additions & 2 deletions common/js/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ if(jQuery) jQuery.noConflict();
if(typeof(options.wrap) == "string") options.wrap ='#'+options.wrap;

if(options.wrap) {
obj = $(options.wrap).find('input[name='+itemName+']:checkbox');
obj = $(options.wrap).find('input[name="'+itemName+'"]:checkbox');
} else {
obj = $('input[name='+itemName+']:checkbox');
obj = $('input[name="'+itemName+'"]:checkbox');
}

if(options.checked == 'toggle') {
Expand Down
4 changes: 2 additions & 2 deletions common/js/xe.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ if(jQuery) jQuery.noConflict();
if(typeof(options.wrap) == "string") options.wrap ='#'+options.wrap;

if(options.wrap) {
obj = $(options.wrap).find('input[name='+itemName+']:checkbox');
obj = $(options.wrap).find('input[name="'+itemName+'"]:checkbox');
} else {
obj = $('input[name='+itemName+']:checkbox');
obj = $('input[name="'+itemName+'"]:checkbox');
}

if(options.checked == 'toggle') {
Expand Down
2 changes: 1 addition & 1 deletion common/js/xe.min.js

Large diffs are not rendered by default.

0 comments on commit e0eef37

Please sign in to comment.