check_permissions

Function check_permissions 

Source
pub async fn check_permissions(
    map_id: i32,
    pool: &SharedPool,
    user_info: UserInfo,
    required_rights: AccessRights,
) -> Result<(), ServiceError>
Expand description

Check if the current user has the correct permissions to view or perform an action on a map.

ยงErrors

If the connection to the database could not be established. If the user does not have the required rights for performing an action on a map.