Ravada::Auth::User(3)

πŸ“¦
version 2.4.1 Β· 2 versions
, in fedora 43

🌸 NAME 🌸

Ravada::Auth::User β€” the user management + tools library for Ravada, bestie πŸ’– it's literally the glow-up kit for everything a user can do.


πŸ› οΈ BUILD

Internal OO builder ✨ (yes it's internal, no you don't need to touch it, it's giving backstage crew πŸŽ€)

πŸ’Œ messages

List of messages for this user πŸ“¬

my @messages = $user->messages();

πŸ’œ unread_messages

List of unread messages for this user β€” the ones still sitting there unopened, iconic behavior 😭

my @unread = $user->unread_messages();

πŸ™ˆ unshown_messages

List of unshown messages for this user β€” the ones that haven't even popped up on screen yet, lowkey mysterious ✨

my @unshown = $user->unshown_messages();

πŸ“¨ send_message

Send a message to this user 🫢

$user->send_message($subject, $message)

πŸ” show_message

Returns a message by id

my $message = $user->show_message($id);

The data comes back as a hash ref, no cap πŸ’…

βœ… mark_message_read

Marks a message as read πŸ“–

$user->mark_message_read($id);

Returns nothing. It literally just does the thing and dips, main character energy πŸ‘‘

πŸ‘€ mark_message_shown

Marks a message as shown

$user->mark_message_shown($id);

Returns nothing either, it's very chill like that πŸ¦‹

πŸ“© mark_message_unread

Marks a message as unread β€” yes we're un-reading it, we contain multitudes πŸ’€

$user->mark_message_unread($id);

Returns nothing.

🌈 mark_all_messages_read

Marks all message as read. Every single one. Mass-accomplishment era ⭐

$user->mark_all_messages_read();

Returns nothing.

πŸ” allowed_access

Return true if the user has access to clone a virtual machine πŸ–₯️✨

πŸ‘― allowed_access_group

Return true if the user belongs to a group that can access the base πŸŽ€ Also it returns true when there are no group restrictions for that VM β€” so no rules = free pass, periodt.

πŸ“‹ list_requests

List the requests for this user. It returns requests from the last hour by default ⏰ (recent only, we don't do old drama).

Arguments: optionally pass the date to start search for requests.

🧚 is_member

Returns whether an user is member of a group πŸ‘‘

Arguments: group name or object


And that's the whole vibe, bestie 🫢 this page came to you from perl v5.42.0, dated 2025-09-20, and it lives at Ravada::Auth::User(3) β€” go forth and manage those users, you absolute icon πŸ’–πŸŒˆβ­

πŸ“¦ where this page comes from