Skip to content

Commit

Permalink
added permission for install tables, and added function to clear tabl…
Browse files Browse the repository at this point in the history
…e session cache
  • Loading branch information
illiphilli committed Jun 23, 2011
1 parent e6c9a08 commit 3991078
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
class administrationController extends expController {
public $basemodel_name = 'expRecord';
public $useractions = array();
public $add_permissions = array('administrate'=>'Manage Administration','toggle_minify'=>'Configure Website Settings',"switch_themes"=>"change themes");
public $add_permissions = array('administrate'=>'Manage Administration','toggle_minify'=>'Configure Website Settings',"switch_themes"=>"change themes","install_tables"=>"Install Tables");
public $codequality = 'beta';

function name() { return $this->displayname(); } //for backwards compat with old modules
function displayname() { return "Administration Controls"; }
function description() { return "This is the beginnings of the new Administration Module"; }
function author() { return "Adam Kessler - OIC Group, Inc"; }
function author() { return "OIC Group, Inc"; }
function hasSources() { return true; }
function hasViews() { return true; }
function hasContent() { return true; }
Expand Down Expand Up @@ -115,6 +115,7 @@ public function install_tables() {
}
}
ksort($tables);
exponent_sessions_clearCurrentUserSessionCache();
assign_to_template(array('status'=>$tables));
}

Expand Down

0 comments on commit 3991078

Please sign in to comment.