"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const types_1 = require("@deepstream/types");
/**
 * The open permission handler allows any action to occur without applying
 * any permissions.
 */
class OpenPermission extends types_1.DeepstreamPlugin {
    constructor() {
        super(...arguments);
        this.description = 'none';
    }
    /**
    * Allows any action by an user
    */
    canPerformAction(socketWrapper, message, callback, passItOn) {
        callback(socketWrapper, message, passItOn, null, true);
    }
}
exports.OpenPermission = OpenPermission;
//# sourceMappingURL=open-permission.js.map