permissionFailure
An error that occurs when the user doesn’t have permission to save or fetch data.
Declaration
static var permissionFailure: CKError.Code { get }Discussion
This error typically occurs in the public database in one of these circumstances:
You have roles for record types.
Your app is trying to accept a share that the user doesn’t have an invitation for.
Let users know they can’t perform this operation. This error is nonrecoverable and you can’t retry the operation.