Added 'Allow access from Macro's' setting to Database Links

This commit is contained in:
Yung Han Khoe 2007-07-21 21:12:31 +00:00
parent d057dba239
commit 5a0bd14476
4 changed files with 26 additions and 1 deletions

View file

@ -202,7 +202,13 @@ sub www_editDatabaseLink {
-hoverHelp => $i18n->get('allowed keywords description'),
-value => $db{allowedKeywords},
);
$f->submit;
$f->yesNo(
-name => "allowMacroAccess",
-label => $i18n->get('allow access from macros'),
-defaultValue=>0,
-value => $db{allowMacroAccess},
);
$f->submit;
$output .= $f->print;
return _submenu($session,$output,"990","database link add/edit");
}
@ -230,6 +236,7 @@ sub www_editDatabaseLinkSave {
identifier=>$session->form->process("dbidentifier"),
DSN=>$session->form->process("DSN"),
allowedKeywords=>$allowedKeywords,
allowMacroAccess=>$session->form->process("allowMacroAccess"),
};
if ($session->form->process("dlid") eq "new") {
WebGUI::DatabaseLink->create($session,$params);

View file

@ -3315,6 +3315,11 @@ a user.|,
lastUpdated => 1165511447,
},
'allow access from macros' => {
message => q|Allow access from Macro's|,
lastUpdated => 0,
},
'preview' => {
message => q|Preview|,
context => q|alternate image text displayed when a thumbnail cannot be found for an image. The image is being previewed.|,