HEX
Server: Apache
System: Linux webm005.cluster121.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: adventp (418412)
PHP: 7.4.33
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/adventp/www/wp-content/plugins/js_composer/assets/js/backend/backend-access-policy.js
(function ( $ ) {
	'use strict';
	vc.AccessPolicyConstructor = function () {
		this.accessPolicy = {};
		vc.events.trigger( 'vc:access:initialize', this );
	};

	vc.AccessPolicyConstructor.prototype = {
		accessPolicy: {},
		add: function ( part, grant ) {
			grant = _.isUndefined( grant ) ? true : !!grant;
			this.accessPolicy[ part ] = grant;
		},
		can: function ( part ) {
			return !!this.accessPolicy[ part ];
		}
	};

	$( function () {
		vc.accessPolicy = new vc.AccessPolicyConstructor();
	} );
})( window.jQuery );