Skip to content

Commit 77416b8

Browse files
committed
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 <[email protected]>
1 parent 3d00354 commit 77416b8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/permission/fs_permission.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ namespace permission {
1616

1717
class FSPermission final : public PermissionBase {
1818
public:
19-
void Apply(const std::string& deny, PermissionScope scope) override;
19+
void Apply(const std::string& allow, PermissionScope scope) override;
2020
bool is_granted(PermissionScope perm, const std::string_view& param) override;
2121

2222
// For debugging purposes, use the gist function to print the whole tree

src/permission/permission.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class Permission {
4646
const std::string_view& res);
4747

4848
// CLI Call
49-
void Apply(const std::string& deny, PermissionScope scope);
49+
void Apply(const std::string& allow, PermissionScope scope);
5050
void EnablePermissions();
5151

5252
private:

0 commit comments

Comments
 (0)