Skip to content

Commit

Permalink
* fix bug #643.
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyidong committed Jul 7, 2015
1 parent 69845cc commit 365b8b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/common/control.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public static function hasPriv($module, $method)
if(empty($acls)) return true;
$menu = isset($lang->menugroup->$module) ? $lang->menugroup->$module : $module;
$menu = strtolower($menu);
if(!isset($lang->$menu->menu)) return true;
if($menu != 'qa' and !isset($lang->$menu->menu)) return true;
if($menu == 'my' or $menu == 'index' or $module == 'tree') return true;
if($module == 'company' and $method == 'dynamic') return true;
if($module == 'action' and $method == 'editcomment') return true;
Expand Down

0 comments on commit 365b8b1

Please sign in to comment.