Apply permissions.