diff options
| author | Amlal <amlal.elmahrouss@icloud.com> | 2024-10-30 08:57:05 +0100 |
|---|---|---|
| committer | Amlal <amlal.elmahrouss@icloud.com> | 2024-10-30 08:57:05 +0100 |
| commit | 96a4f30672702e34afea4014487936fccb850779 (patch) | |
| tree | 7e3e39c63335158143450bf6bcaf9fae20b6cbfd /dev/ZKAKit/src/User.cc | |
| parent | 8600ffcc1ddfc861e761baf2682490061a55cca8 (diff) | |
META: Daily bump.
Signed-off-by: Amlal <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/ZKAKit/src/User.cc')
| -rw-r--r-- | dev/ZKAKit/src/User.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/dev/ZKAKit/src/User.cc b/dev/ZKAKit/src/User.cc index 7d9a055b..39d3e2be 100644 --- a/dev/ZKAKit/src/User.cc +++ b/dev/ZKAKit/src/User.cc @@ -53,13 +53,13 @@ namespace Kernel } // namespace Detail User::User(const Int32& sel, const Char* userName) - : fRing((RingKind)sel) + : fRing((UserRingKind)sel) { MUST_PASS(sel >= 0); rt_copy_memory((VoidPtr)userName, this->fUserName, rt_string_len(userName)); } - User::User(const RingKind& ringKind, const Char* userName) + User::User(const UserRingKind& ringKind, const Char* userName) : fRing(ringKind) { rt_copy_memory((VoidPtr)userName, this->fUserName, rt_string_len(userName)); @@ -67,7 +67,7 @@ namespace Kernel User::~User() = default; - Bool User::TrySave(const Char* password_to_fill) noexcept + Bool User::TrySave(const UserPublicKey password_to_fill) noexcept { if (!password_to_fill || *password_to_fill == 0) @@ -120,18 +120,18 @@ namespace Kernel /// @brief Returns the user's ring. /// @return The king of ring the user is attached to. - const RingKind& User::Ring() noexcept + const UserRingKind& User::Ring() noexcept { return this->fRing; } Bool User::IsStdUser() noexcept { - return this->Ring() == RingKind::kRingStdUser; + return this->Ring() == UserRingKind::kRingStdUser; } Bool User::IsSuperUser() noexcept { - return this->Ring() == RingKind::kRingSuperUser; + return this->Ring() == UserRingKind::kRingSuperUser; } } // namespace Kernel |
