forward porting editBranch ownerUserId fixes into HEAD
This commit is contained in:
parent
0599bd0d5b
commit
b27d14f2e5
3 changed files with 7 additions and 22 deletions
|
|
@ -32,6 +32,8 @@
|
||||||
references (since JSON won't store them and they're of no use to us anyway).
|
references (since JSON won't store them and they're of no use to us anyway).
|
||||||
- fix: No current asset when ending up on Not Found page
|
- fix: No current asset when ending up on Not Found page
|
||||||
- fix: Couldn't add single photos to gallery.
|
- fix: Couldn't add single photos to gallery.
|
||||||
|
- fix: Make the Owner in editBranch to be the same as addEdit, allowing
|
||||||
|
any user to be selected (perlDreamer Consulting, LLC.)
|
||||||
|
|
||||||
7.5.0
|
7.5.0
|
||||||
- rfe: Search Asset returns URLs
|
- rfe: Search Asset returns URLs
|
||||||
|
|
|
||||||
|
|
@ -169,30 +169,13 @@ sub www_editBranch {
|
||||||
-subtext=>'<br />'.$i18n->get("change").' '.WebGUI::Form::yesNo($self->session,{name=>"change_encryptPage"})
|
-subtext=>'<br />'.$i18n->get("change").' '.WebGUI::Form::yesNo($self->session,{name=>"change_encryptPage"})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
my $subtext;
|
$tabform->getTab("security")->user(
|
||||||
if ($self->session->user->isInGroup(3)) {
|
|
||||||
$subtext = $self->session->icon->manage('op=listUsers');
|
|
||||||
} else {
|
|
||||||
$subtext = "";
|
|
||||||
}
|
|
||||||
my $clause;
|
|
||||||
if ($self->session->user->isInGroup(3)) {
|
|
||||||
my $contentManagers = WebGUI::Group->new($self->session,4)->getAllUsers();
|
|
||||||
push (@$contentManagers, $self->session->user->userId);
|
|
||||||
$clause = "userId in (".$self->session->db->quoteAndJoin($contentManagers).")";
|
|
||||||
} else {
|
|
||||||
$clause = "userId=".$self->session->db->quote($self->get("ownerUserId"));
|
|
||||||
}
|
|
||||||
my $users = $self->session->db->buildHashRef("select userId,username from users where $clause order by username");
|
|
||||||
$tabform->getTab("security")->selectBox(
|
|
||||||
-name=>"ownerUserId",
|
-name=>"ownerUserId",
|
||||||
-options=>$users,
|
|
||||||
-label=>$i18n->get(108),
|
-label=>$i18n->get(108),
|
||||||
-hoverHelp=>$i18n->get('108 description',"Asset"),
|
-hoverHelp=>$i18n->get('108 description',"Asset"),
|
||||||
-value=>[$self->get("ownerUserId")],
|
-value=>$self->get("ownerUserId"),
|
||||||
-subtext=>$subtext,
|
|
||||||
-uiLevel=>6,
|
-uiLevel=>6,
|
||||||
-subtext=>'<br />'.$i18n->get("change").' '.WebGUI::Form::yesNo($self->session,{name=>"change_ownerUserId"})
|
-subtext=>'<br />'.$i18n->get("change").' '.WebGUI::Form::yesNo($self->session,{name=>"change_ownerUserId"})
|
||||||
);
|
);
|
||||||
$tabform->getTab("security")->group(
|
$tabform->getTab("security")->group(
|
||||||
-name=>"groupIdView",
|
-name=>"groupIdView",
|
||||||
|
|
|
||||||
|
|
@ -64,8 +64,8 @@ $newEnvHash{REMOTE_ADDR} = '10.0.5.5';
|
||||||
|
|
||||||
#Grab a more recent version of our user session object
|
#Grab a more recent version of our user session object
|
||||||
$varTime = time();
|
$varTime = time();
|
||||||
$varExpires = $varTime + $session->setting->get('sessionTimeout');
|
|
||||||
my $var2 = WebGUI::Session::Var->new($session, $session->getId);
|
my $var2 = WebGUI::Session::Var->new($session, $session->getId);
|
||||||
|
$varExpires = $varTime + $session->setting->get('sessionTimeout');
|
||||||
|
|
||||||
cmp_deeply(
|
cmp_deeply(
|
||||||
$var2,
|
$var2,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue