Skip to content

Commit

Permalink
authn: Add Show Cluster as Cluster-Level Op
Browse files Browse the repository at this point in the history
- Add show cluster as a cluster-level operation.

Signed-off-by: Ryan Koo <[email protected]>
  • Loading branch information
rkoo19 committed Sep 3, 2024
1 parent d015ea5 commit 08c0382
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/authn/tok/token.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func (tk *Token) String() string {
//
// If there are no defined ACL found at any step, any access is denied.

const accessCluster = apc.AceListBuckets | apc.AceCreateBucket | apc.AceDestroyBucket | apc.AceMoveBucket | apc.AceAdmin
const accessCluster = apc.AceListBuckets | apc.AceCreateBucket | apc.AceDestroyBucket | apc.AceMoveBucket | apc.AceShowCluster | apc.AceAdmin

func (tk *Token) CheckPermissions(clusterID string, bck *cmn.Bck, perms apc.AccessAttrs) error {
if tk.IsAdmin {
Expand Down

0 comments on commit 08c0382

Please sign in to comment.