silverwolf-x's picture
download
raw
207 Bytes
import { Access } from "payload/config";
export const publishedOnly: Access = ({ req: { user } }) => {
if (Boolean(user)) return true;
return {
_status: {
equals: "published",
},
};
};

Xet Storage Details

Size:
207 Bytes
·
Xet hash:
6cc4327a11082ae9facb3e11336cb05b20645120216a1c114bd580068ddd400e

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.