Replace enforce by checkPermission