Skip to content
This repository has been archived by the owner on Oct 29, 2019. It is now read-only.

Commit

Permalink
SAK-19498 merge trunk r85933
Browse files Browse the repository at this point in the history
git-svn-id: https://source.sakaiproject.org/svn/user/branches/sakai-2.8.x@86337 66ffb92e-73f9-0310-93c1-f5514f145a0a
  • Loading branch information
arwhyte@umich.edu committed Dec 13, 2010
1 parent c017f38 commit 79df950
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
Expand Up @@ -483,6 +483,13 @@ private String buildViewContext(SessionState state, Context context)
catch (UserLockedException e) catch (UserLockedException e)
{ {
} }

//SAK-19498
//check if user can change pw (this is used to determine if user should
//view createdBy and modifiedBy info (assuming you can't change pw for provided users)
if(UserDirectoryService.getInstance().allowUpdateUserPassword(id)){
context.put("viewCreatedModifiedBy", "true");
}


// disable auto-updates while not in list mode // disable auto-updates while not in list mode
disableObservers(state); disableObservers(state);
Expand Down
2 changes: 1 addition & 1 deletion user-tool/tool/src/webapp/vm/user/chef_users_edit.vm
Expand Up @@ -100,7 +100,7 @@
#end #end
</p> </p>
#end #end
#if ($user) #if ($user && $service.allowUpdateUserPassword($user.Id))
<p class="shorttext"> <p class="shorttext">
<label>$tlang.getString("useedi.creby")</label> <label>$tlang.getString("useedi.creby")</label>
$validator.escapeHtml($user.CreatedBy.DisplayName) $validator.escapeHtml($user.CreatedBy.DisplayName)
Expand Down
3 changes: 2 additions & 1 deletion user-tool/tool/src/webapp/vm/user/chef_users_view.vm
Expand Up @@ -61,7 +61,7 @@
</td> </td>
</tr> </tr>
</table> </table>

#if($viewCreatedModifiedBy)
<table class="itemSummary" summary="$tlang.getString("usevie.revuseinf")"> <table class="itemSummary" summary="$tlang.getString("usevie.revuseinf")">
<tr> <tr>
<th>$tlang.getString("useedi.creby")</th> <th>$tlang.getString("useedi.creby")</th>
Expand All @@ -88,6 +88,7 @@
</td> </td>
</tr> </tr>
</table> </table>
#end
<input type="hidden" id="id" name="id" value="$validator.escapeHtml($user.Id)" /> <input type="hidden" id="id" name="id" value="$validator.escapeHtml($user.Id)" />
#if($enableEdit) #if($enableEdit)
<div class="act"> <div class="act">
Expand Down

0 comments on commit 79df950

Please sign in to comment.