Description, how rights depending on user rights are used

interface iwhereRights {
    default: string;
    orAll?: boolean;
    rightName?: string;
}

Properties

default: string

Condition used in case that user has not any right from defined, or everytime if orAll=true or no right is defined

orAll?: boolean

Options:

  • true conditions of all rights, that use have, are liked with the OR operand
  • false only first condition is used - rights should be select from most open to the least open
rightName?: string

for each right is checked, if user has the right and condition is applied