     @createSettingsView()
 
 
-  handleError: (button, message) ->
+  handleError: (button, err) ->
+    if err?.message is 'Access denied'
+      return global.location.href = '/Activity'
 
     button.hideLoader()
-    message or= 'Failed to change user role. Please try again.'
+    message = err?.message or 'Failed to change user role. Please try again.'
     return new KDNotificationView title: message, duration: 5000
 
 


    kd.singletons.groupsController.getCurrentGroup().kickMember @getData().getId(), (err) =>

      return @handleError @actionButtons.kick, 'Failed to kick user. Please try again.'  if err

      @destroy()



      group.fetchUserRoles [ jAccount.getId() ], (err, roles) =>

        return @handleError button, err  if err

        data        = @getData()
        data.roles  = (role.as for role in roles)
