updated ui and fixed permission problem.
@@ -306,6 +306,7 @@ | ||
306 | 306 | String type = notepadForm.type; |
307 | 307 | if (type != null) { |
308 | 308 | if (NotepadConstants.PRIVATE_CATEGORY.equals(type) |
309 | + || NotepadConstants.PUBLIC_CATEGORY.equals(type) | |
309 | 310 | || NotepadConstants.DEFAULT_CATEGORY.equals(type)) { |
310 | 311 | String userId = request.getRemoteUser(); |
311 | 312 | if (userId != null && userId.equals(notepadForm.createdBy)) { |
@@ -318,6 +319,10 @@ | ||
318 | 319 | return false; |
319 | 320 | } |
320 | 321 | |
322 | + public String getUserId() { | |
323 | + return request.getRemoteUser(); | |
324 | + } | |
325 | + | |
321 | 326 | /** |
322 | 327 | * @return the request |
323 | 328 | */ |