PACS System 0.1.0
PACS DICOM system library
Loading...
Searching...
No Matches
kcenon::pacs::security::User Struct Reference

Represents a user in the system. More...

#include <user.h>

Collaboration diagram for kcenon::pacs::security::User:
Collaboration graph

Public Member Functions

bool has_role (Role role) const
 Check if user has a specific role.
 

Public Attributes

std::string id
 
std::string username
 
std::vector< Roleroles
 
bool active {true}
 

Detailed Description

Represents a user in the system.

Definition at line 26 of file user.h.

Member Function Documentation

◆ has_role()

bool kcenon::pacs::security::User::has_role ( Role role) const
inline

Check if user has a specific role.

Definition at line 35 of file user.h.

35 {
36 return std::ranges::find(roles, role) != roles.end();
37 }
std::vector< Role > roles
Definition user.h:29

References roles.

Referenced by kcenon::pacs::security::user_context::has_role().

Here is the caller graph for this function:

Member Data Documentation

◆ active

bool kcenon::pacs::security::User::active {true}

◆ id

◆ roles

std::vector<Role> kcenon::pacs::security::User::roles

◆ username

std::string kcenon::pacs::security::User::username

The documentation for this struct was generated from the following file: