@@ -48,9 +48,9 @@ class Identity {
4848 * applier that is being used. */
4949 virtual uint32_t get_perms_from_aclspec (const DoutPrefixProvider* dpp, const aclspec_t & aclspec) const = 0;
5050
51- /* Verify whether a given identity *can be treated as* an admin of rgw_owner
52- * specified in @o. On error throws rgw::auth::Exception storing the reason. */
53- virtual bool is_admin_of ( const rgw_owner& o ) const = 0;
51+ /* Verify whether a given identity *can be treated as* an admin.
52+ * On error throws rgw::auth::Exception storing the reason. */
53+ virtual bool is_admin ( ) const = 0;
5454
5555 /* Verify whether a given identity is the rgw_owner specified in @o.
5656 * On internal error throws rgw::auth::Exception storing the reason. */
@@ -480,7 +480,7 @@ class WebIdentityApplier : public IdentityApplier {
480480 return RGW_PERM_NONE;
481481 }
482482
483- bool is_admin_of ( const rgw_owner& o ) const override {
483+ bool is_admin ( ) const override {
484484 return false ;
485485 }
486486
@@ -668,7 +668,7 @@ class RemoteApplier : public IdentityApplier {
668668
669669 ACLOwner get_aclowner () const override ;
670670 uint32_t get_perms_from_aclspec (const DoutPrefixProvider* dpp, const aclspec_t & aclspec) const override ;
671- bool is_admin_of ( const rgw_owner& o ) const override ;
671+ bool is_admin ( ) const override ;
672672 bool is_owner_of (const rgw_owner& o) const override ;
673673 bool is_root () const override ;
674674 bool is_identity (const Principal& p) const override ;
@@ -734,7 +734,7 @@ class LocalApplier : public IdentityApplier {
734734
735735 ACLOwner get_aclowner () const override ;
736736 uint32_t get_perms_from_aclspec (const DoutPrefixProvider* dpp, const aclspec_t & aclspec) const override ;
737- bool is_admin_of ( const rgw_owner& o ) const override ;
737+ bool is_admin ( ) const override ;
738738 bool is_owner_of (const rgw_owner& o) const override ;
739739 bool is_root () const override ;
740740 bool is_identity (const Principal& p) const override ;
@@ -817,7 +817,7 @@ class RoleApplier : public IdentityApplier {
817817 uint32_t get_perms_from_aclspec (const DoutPrefixProvider* dpp, const aclspec_t & aclspec) const override {
818818 return 0 ;
819819 }
820- bool is_admin_of ( const rgw_owner& o ) const override {
820+ bool is_admin ( ) const override {
821821 return false ;
822822 }
823823 bool is_owner_of (const rgw_owner& o) const override ;
@@ -865,7 +865,7 @@ class ServiceIdentity : public Identity {
865865 return RGW_PERM_NONE;
866866 }
867867
868- bool is_admin_of ( const rgw_owner& o ) const override {
868+ bool is_admin ( ) const override {
869869 return false ;
870870 }
871871
0 commit comments