Skip to content

Commit

Permalink
src: clarify the parameter name in Permission::Apply
Browse files Browse the repository at this point in the history
This fixes confusing parameter names. They are references
to set allow-permission.

Signed-off-by: Daeyeon Jeong <daeyeon.dev@gmail.com>
  • Loading branch information
daeyeon committed May 5, 2023
1 parent 3d00354 commit 77416b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/permission/fs_permission.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/permission/permission.h
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 77416b8

Please sign in to comment.