fix: Unable to remove databaselinks
This commit is contained in:
parent
d8f69911ab
commit
5d066b3338
2 changed files with 3 additions and 3 deletions
|
|
@ -1,7 +1,7 @@
|
|||
7.0.2
|
||||
- fix: upgrade from 6.99.4-6.99-5 can fail if site contains groups tied to ldap with no users in it.
|
||||
- GroupText macro returns an error message if it can't find the group by the name the user supplies.
|
||||
|
||||
- fix: Unable to remove databaselinks (Thanks to misja)
|
||||
|
||||
7.0.1
|
||||
- fix: User profile field "Department" needs i18n
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@ user is not in group Admin (3).
|
|||
sub www_deleteDatabaseLink {
|
||||
my $session = shift;
|
||||
return $session->privilege->insufficient unless ($session->user->isInGroup(3));
|
||||
return $session->privilege->vitalComponent if ($session->form->process("dlid") == 0);
|
||||
return $session->privilege->vitalComponent if ($session->form->process("dlid") eq '0');
|
||||
my $i18n = WebGUI::International->new($session);
|
||||
my ($output);
|
||||
$output .= $i18n->get(988).'<p>';
|
||||
|
|
@ -124,7 +124,7 @@ Returns the user to the List Database Links screen.
|
|||
sub www_deleteDatabaseLinkConfirm {
|
||||
my $session = shift;
|
||||
return $session->privilege->insufficient unless ($session->user->isInGroup(3));
|
||||
return $session->privilege->vitalComponent if ($session->form->process("dlid") == 0);
|
||||
return $session->privilege->vitalComponent if ($session->form->process("dlid") eq '0');
|
||||
|
||||
WebGUI::DatabaseLink->new($session,$session->form->process("dlid"))->delete;
|
||||
return www_listDatabaseLinks($session);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue