Admin Access & Roles
Admin Access & Roles
ACE, server-only license fallback and Nord Staff grants.
Applies to: Nord Inventory v2.0.0
-- Nord Inventory - SERVER ONLY admin access configuration
-- This file is loaded only through server_scripts. FiveM identifiers in this file are never sent to clients.
Config = Config or {}
Config.AdminAce = 'nord_inventory.admin'
Config.AdminAccess = {
-- ACE is checked first. The default matches server.cfg.example:
-- add_ace group.admin nord_inventory.admin allow
UseAce = true,
Ace = Config.AdminAce or 'nord_inventory.admin',
-- If ACE does not grant access, allow an exact FiveM identifier from this list.
-- Recommended format: license:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
-- You may also paste only the hash; Nord will automatically prefix "license:".
LicenseFallback = true,
Licenses = {
-- 'license:0123456789abcdef0123456789abcdef01234567',
},
-- Automatic Nord Staff access integration. nord_staff detects the public
-- HasAdminAccess/GiveAdminAccess/RemoveAdminAccess exports and can grant or
-- revoke this role without changing ACE or the static license lists above.
NordStaffBridge = {
Enabled = true,
Role = 'admin', -- developer | admin | owner
AllowedResources = { 'nord_staff' }
}
}
-- Optional Admin Studio role separation.
-- Legacy `nord_inventory.admin` keeps full day-to-day administration access.
Config.AdminRoles = {
UseAce = Config.AdminAccess.UseAce ~= false,
OwnerAce = 'nord_inventory.owner',
AdminAce = Config.AdminAccess.Ace or 'nord_inventory.admin',
DeveloperAce = 'nord_inventory.dev',
-- License fallback entries may stay as strings (treated as admin) or use:
-- { identifier = 'license:...', role = 'owner' }
LicenseRoles = {
-- { identifier = 'license:012345...', role = 'owner' },
}
}
Role order
developer < admin < owner
Owner should be restricted because restore operations can replace persistent inventory state.