Skip to content

Commit

Permalink
TRUNK-6259: Fixing last login time authorization check
Browse files Browse the repository at this point in the history
  • Loading branch information
rkorytkowski committed Aug 22, 2024
1 parent da78bda commit 23a1370
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion api/src/main/java/org/openmrs/api/UserService.java
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,11 @@ public List<User> getUsers(String name, List<Role> roles, boolean includeRetired
* @param user the subject user
* @return timestamp representing last login time (e.g. 1717414410587)
* @since 2.7.0
*
* @should return empty string on last login time if a different user is logged in
* @should not be empty if user is authenticated
* @should return empty string on last login time if property not set
*/
@Authorized(PrivilegeConstants.GET_USERS)
@Authorized
String getLastLoginTime(User user);
}

0 comments on commit 23a1370

Please sign in to comment.