"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.canCreateChannelV2 = canCreateChannelV2;
const channel_permission_1 = require("../channel-permission");
/**
 * Utility to determine if User has privileges to create a channel with the defined permissions
 * @export
 * @param channel
 * @param user
 * @returns {boolean}
 */
function canCreateChannelV2(channel, user = {}) {
    const channelPermission = new channel_permission_1.ChannelPermission(channel);
    return channelPermission.canCreateChannel(user);
}
//# sourceMappingURL=can-create-channel-v2.js.map