rfe: Button to Turn Admin Off on Admin Accordian (#475)
This commit is contained in:
parent
ad88a1da5f
commit
e98fc02e9b
5 changed files with 21 additions and 8 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
7.7.5
|
7.7.5
|
||||||
- Adding StoryManager.
|
- Adding StoryManager.
|
||||||
|
- rfe: Button to Turn Admin Off on Admin Accordian (#475)
|
||||||
- fixed #10223: Calendar List View Ignores Event Permissions (dhelsten)
|
- fixed #10223: Calendar List View Ignores Event Permissions (dhelsten)
|
||||||
- fixed #10226: html2text dropping text
|
- fixed #10226: html2text dropping text
|
||||||
- fixed #10210: Generated Message-Id invalid (patch basis from tektek)
|
- fixed #10210: Generated Message-Id invalid (patch basis from tektek)
|
||||||
|
|
|
||||||
|
|
@ -37,20 +37,25 @@ my $session = start(); # this line required
|
||||||
installStoryManagerTables($session);
|
installStoryManagerTables($session);
|
||||||
sm_upgradeConfigFiles($session);
|
sm_upgradeConfigFiles($session);
|
||||||
sm_updateDailyWorkflow($session);
|
sm_updateDailyWorkflow($session);
|
||||||
|
turnOffAdmin($session);
|
||||||
|
|
||||||
correctEventTemplateVariables($session);
|
correctEventTemplateVariables($session);
|
||||||
|
|
||||||
finish($session); # this line required
|
finish($session); # this line required
|
||||||
|
|
||||||
|
|
||||||
#----------------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
# Describe what our function does
|
sub turnOffAdmin {
|
||||||
#sub exampleFunction {
|
my $session = shift;
|
||||||
# my $session = shift;
|
print "\tAdding admin off link to admin console." unless $quiet;
|
||||||
# print "\tWe're doing some stuff here that you should know about... " unless $quiet;
|
$session->config->addToHash("adminConsole","adminConsoleOff", {
|
||||||
# # and here's our code
|
"icon" => "adminConsoleOff.gif",
|
||||||
# print "DONE!\n" unless $quiet;
|
"group" => "12",
|
||||||
#}
|
"uiLevel" => 1,
|
||||||
|
"url" => "^PageUrl(\"\",op=switchOffAdmin);",
|
||||||
|
"title" => "^International(12,WebGUI);"
|
||||||
|
});
|
||||||
|
print "OK\n" unless $quiet;
|
||||||
|
}
|
||||||
|
|
||||||
sub installStoryManagerTables {
|
sub installStoryManagerTables {
|
||||||
my ($session) = @_;
|
my ($session) = @_;
|
||||||
|
|
|
||||||
|
|
@ -380,6 +380,13 @@
|
||||||
"title" : "^International(spectre,Spectre);",
|
"title" : "^International(spectre,Spectre);",
|
||||||
"groupSetting" : "groupIdAdminSpectre"
|
"groupSetting" : "groupIdAdminSpectre"
|
||||||
},
|
},
|
||||||
|
"adminConsoleOff" : {
|
||||||
|
"icon" : "adminConsoleOff.gif",
|
||||||
|
"uiLevel" : 1,
|
||||||
|
"group" : "12",
|
||||||
|
"url" : "^PageUrl(\"\",op=switchOffAdmin);",
|
||||||
|
"title" : "^International(12,WebGUI);"
|
||||||
|
},
|
||||||
"contentFilters" : {
|
"contentFilters" : {
|
||||||
"icon" : "contentFilters.gif",
|
"icon" : "contentFilters.gif",
|
||||||
"uiLevel" : 3,
|
"uiLevel" : 3,
|
||||||
|
|
|
||||||
BIN
www/extras/adminConsole/adminConsoleOff.gif
Normal file
BIN
www/extras/adminConsole/adminConsoleOff.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2 KiB |
BIN
www/extras/adminConsole/small/adminConsoleOff.gif
Normal file
BIN
www/extras/adminConsole/small/adminConsoleOff.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 637 B |
Loading…
Add table
Add a link
Reference in a new issue