Index: trunk/grails-app/controllers/LoginController.groovy
===================================================================
--- trunk/grails-app/controllers/LoginController.groovy	(revision 165)
+++ trunk/grails-app/controllers/LoginController.groovy	(revision 166)
@@ -144,4 +144,5 @@
 		def username = session[AuthenticationProcessingFilter.SPRING_SECURITY_LAST_USERNAME_KEY]
 		def msg = ''
+        def person = Person.findByLoginName(username)
 		def exception = session[AbstractProcessingFilter.SPRING_SECURITY_LAST_EXCEPTION_KEY]
 		if (exception) {
@@ -149,4 +150,7 @@
 				msg = "[$username] is disabled."
 			}
+            else if (person.authorities.isEmpty()) {
+                msg = "[$username] has no GrantedAuthority."
+            }
 			else {
 				msg = "[$username] wrong username/password."
Index: trunk/grails-app/controllers/PersonGroupController.groovy
===================================================================
--- trunk/grails-app/controllers/PersonGroupController.groovy	(revision 165)
+++ trunk/grails-app/controllers/PersonGroupController.groovy	(revision 166)
@@ -27,5 +27,5 @@
         if(personGroupInstance) {
             try {
-                personGroupInstance.delete()
+                personGroupInstance.delete(flush:true)
                 flash.message = "PersonGroup ${params.id} deleted"
                 redirect(action:list)
@@ -77,5 +77,5 @@
         else {
             flash.message = "PersonGroup not found with id ${params.id}"
-            redirect(action:edit,id:params.id)
+            redirect(action:list)
         }
     }
