From 77416b841a21b6b385397da60bf4de2f48bc579c Mon Sep 17 00:00:00 2001 From: Daeyeon Jeong Date: Fri, 5 May 2023 04:09:17 +0900 Subject: [PATCH] src: clarify the parameter name in `Permission::Apply` This fixes confusing parameter names. They are references to set allow-permission. Signed-off-by: Daeyeon Jeong --- src/permission/fs_permission.h | 2 +- src/permission/permission.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/permission/fs_permission.h b/src/permission/fs_permission.h index f393c6a042e662..7ac987c7118ca1 100644 --- a/src/permission/fs_permission.h +++ b/src/permission/fs_permission.h @@ -16,7 +16,7 @@ namespace permission { class FSPermission final : public PermissionBase { public: - void Apply(const std::string& deny, PermissionScope scope) override; + void Apply(const std::string& allow, PermissionScope scope) override; bool is_granted(PermissionScope perm, const std::string_view& param) override; // For debugging purposes, use the gist function to print the whole tree diff --git a/src/permission/permission.h b/src/permission/permission.h index 72928f853c4b87..61341ab29134f2 100644 --- a/src/permission/permission.h +++ b/src/permission/permission.h @@ -46,7 +46,7 @@ class Permission { const std::string_view& res); // CLI Call - void Apply(const std::string& deny, PermissionScope scope); + void Apply(const std::string& allow, PermissionScope scope); void EnablePermissions(); private: