export default (accessControl) => {
    return (ctr) => {
        if (accessControl.create) {
            ctr.prototype.createRecordPermissions = accessControl.create;
        }
        if (accessControl.read) {
            ctr.prototype.readRecordPermissions = accessControl.read;
        }
        if (accessControl.update) {
            ctr.prototype.updateRecordPermissions = accessControl.update;
        }
        if (accessControl.delete) {
            ctr.prototype.deleteRecordPermissions = accessControl.delete;
        }
    };
};
//# sourceMappingURL=TableAccessControl.js.map