Security check added for flush cache
This commit is contained in:
parent
d8ead51499
commit
8dc80f6e2d
1 changed files with 1 additions and 0 deletions
|
|
@ -33,6 +33,7 @@ sub _submenu {
|
||||||
|
|
||||||
#-------------------------------------------------------------------
|
#-------------------------------------------------------------------
|
||||||
sub www_flushCache {
|
sub www_flushCache {
|
||||||
|
return WebGUI::Privilege::adminOnly() unless (WebGUI::Grouping::isInGroup(3));
|
||||||
my $cache = WebGUI::Cache->new();
|
my $cache = WebGUI::Cache->new();
|
||||||
$cache->flush;
|
$cache->flush;
|
||||||
return www_manageCache();
|
return www_manageCache();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue