[Rt-commit] rt branch, 4.4/selfservice-show-more-user-info, repushed
Maureen Mirville
maureen at bestpractical.com
Thu Jul 5 14:40:28 EDT 2018
The branch 4.4/selfservice-show-more-user-info was deleted and repushed:
was 6f0adff3a85d4a296dc2be3ba22ad57a6070b28d
now 02930ea7ba277da8d0df0d8108367f40bf6381d7
1: 85b47645d = 1: 85b47645d Update article postfix loops from using $_ to a named variable
2: d9b5d635d = 2: d9b5d635d Remove Signature feature from SelfService Prefs
3: 8e2e32aa4 = 3: 8e2e32aa4 Allow self service users varied access to their stored RT user information
4: 974695b76 = 4: 974695b76 Update ModifySelf rights check for Preferences tab in SelfService
5: 42187c99b = 5: 42187c99b Add $SelfServiceUserPrefs config tests to verify SelfService display
6: e1bbef928 ! 6: ada2d5f23 Add another config option to $SelfServiceUserPrefs
@@ -44,7 +44,7 @@
</form>
+% }
-+% if ( $pref eq 'view-info' || 'edit-prefs-view-info' ) {
++% if ( $pref eq 'view-info' || $pref eq 'edit-prefs-view-info' ) {
+<& /Prefs/Elements/ShowAboutMe, UserObj => $user &>
% }
7: 6f0adff3a ! 7: 02930ea7b Update $SelfServiceUserPrefs config tests to verify new display option
@@ -14,3 +14,14 @@
RT::Test->stop_server;
RT->Config->Set( SelfServiceUserPrefs => $config );
( $url, $m ) = RT::Test->started_ok;
+@@
+ } elsif ( $config eq 'view-info' ) {
+ $m->content_lacks( '<td class="value"><input name="NickName" value="" /></td>', "'View-Info' option contains no input fields for full user info" );
+ $m->content_contains( '<td class="label">Nickname:</td>', "'View-Info' option contains full user info" );
++ } elsif ( $config eq 'edit-prefs-view-info' ) {
++ $m->content_contains( '<td class="value"><input type="password" name="CurrentPass"', "'Edit-Prefs-View-Info' option contains default user info" );
++ $m->content_contains( '<td class="label">Nickname:</td>', "'Edit-Prefs-View-Info' option contains full user info" );
++ $m->content_lacks( '<td class="value"><input name="NickName" value="" /></td>', "'Edit-Prefs-View-Info' option contains no input fields for full user info" );
+ } else {
+ RT::Test->add_rights( { Principal => $user_a, Right => ['ModifySelf'] } );
+ my $nickname = 'user_a_nickname';
More information about the rt-commit
mailing list