import { PermissionLevel } from './PermissionLevel.js'; /** * More granular access rights to specific things in the system */ export declare enum AccessRight { /** * @deprecated * Allows the user to log in as a full-access admin to a specific organization */ PlatformLoginAs = "PlatformLoginAs", OrganizationCreateWebshops = "OrganizationCreateWebshops", OrganizationManagePayments = "OrganizationManagePayments", OrganizationFinanceDirector = "OrganizationFinanceDirector", OrganizationCreateGroups = "OrganizationCreateGroups", EventWrite = "EventWrite", /** defines that this person can review event notification for this organization. You can limit which events by restricing the organizations the user has access to. */ OrganizationEventNotificationReviewer = "OrganizationEventNotificationReviewer", MemberReadFinancialData = "MemberReadFinancialData", MemberWriteFinancialData = "MemberWriteFinancialData", /** * Edit/view national registration number */ MemberManageNRN = "MemberManageNRN", WebshopScanTickets = "WebshopScanTickets", /** * Send messages for a given sender */ SendMessages = "SendMessages", /** * Create, edit and delete email templates */ ManageEmailTemplates = "ManageEmailTemplates" } export declare class AccessRightHelper { static getName(right: AccessRight): string; static prohibitedOrganizationLevelAccessRights(): AccessRight[]; static getNameShort(right: AccessRight): string; static getDescription(right: AccessRight): string; static getLongDescription(right: AccessRight): string | null; /** * If a user has a certain permission level, automatically grant the specific access right * By default only full permissions gives all access rights, but you can tweak it: * E.g., give webshop scan rights if you also have write access to that webshop */ static autoGrantRightForLevel(right: AccessRight): PermissionLevel | null; /** * Automatically grant a user access rights if they have a certain right */ static autoInheritFrom(right: AccessRight): AccessRight[]; } //# sourceMappingURL=AccessRight.d.ts.map