fixing has_module perms in user model