Update changes
Dieser Commit ist enthalten in:
@ -1,5 +1,13 @@
|
||||
// Runtime constants and helpers shared across projects
|
||||
|
||||
const POWER_FUNCTIONS = [
|
||||
{ id: 'sachgebietsleitung', label: 'Sachgebietsleitung', unitTypes: ['sachgebiet'], canManageEmployees: true },
|
||||
{ id: 'stellvertretende_sachgebietsleitung', label: 'Stellvertretende Sachgebietsleitung', unitTypes: ['sachgebiet'], canManageEmployees: true },
|
||||
{ id: 'ermittlungskommissionsleitung', label: 'Ermittlungskommissionsleitung', unitTypes: ['ermittlungskommission'], canManageEmployees: true },
|
||||
{ id: 'dezernatsleitung', label: 'Dezernatsleitung', unitTypes: ['dezernat'], canManageEmployees: false },
|
||||
{ id: 'abteilungsleitung', label: 'Abteilungsleitung', unitTypes: ['abteilung'], canManageEmployees: false }
|
||||
]
|
||||
|
||||
const ROLE_PERMISSIONS = {
|
||||
admin: [
|
||||
'admin:panel:access',
|
||||
@ -30,36 +38,41 @@ const ROLE_PERMISSIONS = {
|
||||
]
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
ROLE_PERMISSIONS,
|
||||
DEFAULT_SKILLS: {
|
||||
general: [
|
||||
'Teamarbeit',
|
||||
'Kommunikation',
|
||||
'Projektmanagement'
|
||||
],
|
||||
it: [
|
||||
'JavaScript',
|
||||
'TypeScript',
|
||||
'Node.js',
|
||||
'SQL'
|
||||
],
|
||||
certificates: [
|
||||
'Erste Hilfe',
|
||||
'Brandschutzhelfer'
|
||||
],
|
||||
weapons: [
|
||||
'WBK A',
|
||||
'WBK B'
|
||||
]
|
||||
}
|
||||
const DEFAULT_SKILLS = {
|
||||
general: [
|
||||
'Teamarbeit',
|
||||
'Kommunikation',
|
||||
'Projektmanagement'
|
||||
],
|
||||
it: [
|
||||
'JavaScript',
|
||||
'TypeScript',
|
||||
'Node.js',
|
||||
'SQL'
|
||||
],
|
||||
certificates: [
|
||||
'Erste Hilfe',
|
||||
'Brandschutzhelfer'
|
||||
],
|
||||
weapons: [
|
||||
'WBK A',
|
||||
'WBK B'
|
||||
]
|
||||
}
|
||||
|
||||
exports.ROLE_PERMISSIONS = ROLE_PERMISSIONS
|
||||
exports.POWER_FUNCTIONS = POWER_FUNCTIONS
|
||||
exports.DEFAULT_SKILLS = DEFAULT_SKILLS
|
||||
|
||||
// Re-export skill constants
|
||||
try {
|
||||
const { LANGUAGE_LEVELS, SKILL_HIERARCHY } = require('./skills')
|
||||
module.exports.LANGUAGE_LEVELS = LANGUAGE_LEVELS
|
||||
module.exports.SKILL_HIERARCHY = SKILL_HIERARCHY
|
||||
exports.LANGUAGE_LEVELS = LANGUAGE_LEVELS
|
||||
exports.SKILL_HIERARCHY = SKILL_HIERARCHY
|
||||
} catch (e) {
|
||||
// no-op if skills.js not present
|
||||
}
|
||||
|
||||
module.exports = exports
|
||||
exports.__esModule = true
|
||||
exports.default = exports
|
||||
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren