Revision 2680
Added by sgarg about 19 years ago
src/edu/ucsb/nceas/metacat/AuthSession.java | ||
---|---|---|
217 | 217 |
out.append(userInfo[0]); |
218 | 218 |
out.append("\n</name>\n"); |
219 | 219 |
} |
220 |
|
|
221 |
// insert <isAdministrator> tag if the user is an administrator |
|
220 | 222 |
if(MetaCatUtil.isAdministrator(username,groups)){ |
221 | 223 |
out.append("\n <isAdministrator></isAdministrator>\n"); |
222 | 224 |
} |
223 |
|
|
225 |
|
|
226 |
// insert <isModerator> tag if the user is a Moderator |
|
224 | 227 |
if(MetaCatUtil.isModerator(username,groups)){ |
225 | 228 |
out.append("\n <isModerator></isModerator>\n"); |
226 | 229 |
} |
Also available in: Unified diff
Also in the previous commit, the successful message changed. Now in addtion to the sessionid tag, the following tags also included: <name>[name of the user]</name>, <isModerator> (if is moderator) and <isAdministrator> (if is Administrator)