Index: lams_common/src/java/org/lamsfoundation/lams/security/SecurityService.java =================================================================== diff -u -rebebf9adb849e783bc45d44a0a47bdc56006cc73 -r2e0465b90f15f92e2f17490d2156f78bd959b4c6 --- lams_common/src/java/org/lamsfoundation/lams/security/SecurityService.java (.../SecurityService.java) (revision ebebf9adb849e783bc45d44a0a47bdc56006cc73) +++ lams_common/src/java/org/lamsfoundation/lams/security/SecurityService.java (.../SecurityService.java) (revision 2e0465b90f15f92e2f17490d2156f78bd959b4c6) @@ -95,7 +95,7 @@ if (!hasSysadminRole && !(hasOrgRole && securityDAO.isLessonLearner(lessonId, userId))) { String error = "User " + userId + " is not learner in lesson " + lessonId + " and can not \"" + action + "\""; - SecurityService.log.error(error); + SecurityService.log.debug(error); logEventService.logEvent(LogEvent.TYPE_ROLE_FAILURE, userId, userId, lessonId, null, error); if (escalate) { throw new SecurityException(error); @@ -156,7 +156,7 @@ if (!hasGroupManagerRole && !(hasMonitorRole && securityDAO.isLessonMonitor(lessonId, userId, true))) { String error = "User " + userId + " is not monitor in lesson " + lessonId + " and can not \"" + action + "\""; - SecurityService.log.error(error); + SecurityService.log.debug(error); logEventService.logEvent(LogEvent.TYPE_ROLE_FAILURE, userId, userId, lessonId, null, error); if (escalate) { throw new SecurityException(error); @@ -208,7 +208,7 @@ if (!lesson.getUser().getUserId().equals(userId)) { String error = "User " + userId + " is not owner of lesson " + lessonId + " and can not \"" + action + "\""; - SecurityService.log.error(error); + SecurityService.log.debug(error); logEventService.logEvent(LogEvent.TYPE_ROLE_FAILURE, userId, userId, lessonId, null, error); if (escalate) { throw new SecurityException(error); @@ -270,7 +270,7 @@ || securityDAO.isLessonMonitor(lessonId, userId, true)))) { String error = "User " + userId + " is not participant in lesson " + lessonId + " and can not \"" + action + "\""; - SecurityService.log.error(error); + SecurityService.log.debug(error); logEventService.logEvent(LogEvent.TYPE_ROLE_FAILURE, userId, userId, lessonId, null, error); if (escalate) { throw new SecurityException(error); @@ -293,7 +293,7 @@ if (!securityDAO.isSysadmin(userId)) { String error = "User " + userId + " is not sysadmin and can not \"" + action + "\""; - SecurityService.log.error(error); + SecurityService.log.debug(error); logEventService.logEvent(LogEvent.TYPE_ROLE_FAILURE, userId, userId, null, null, error); if (escalate) { throw new SecurityException(error); @@ -359,7 +359,7 @@ String error = "User " + userId + " does not have any of " + Arrays.toString(roles) + " roles in organisation " + orgId + " and can not \"" + action + "\""; - SecurityService.log.error(error); + SecurityService.log.debug(error); logEventService.logEvent(LogEvent.TYPE_ROLE_FAILURE, userId, userId, null, null, error); if (escalate) { throw new SecurityException(error);