@@ -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
@@ -664,7 +664,7 @@ class RemoteApplier : public IdentityApplier {
664664
665665 ACLOwner get_aclowner () const override ;
666666 uint32_t get_perms_from_aclspec (const DoutPrefixProvider* dpp, const aclspec_t & aclspec) const override ;
667- bool is_admin_of ( const rgw_owner& o ) const override ;
667+ bool is_admin ( ) const override ;
668668 bool is_owner_of (const rgw_owner& o) const override ;
669669 bool is_root () const override ;
670670 bool is_identity (const Principal& p) const override ;
@@ -730,7 +730,7 @@ class LocalApplier : public IdentityApplier {
730730
731731 ACLOwner get_aclowner () const override ;
732732 uint32_t get_perms_from_aclspec (const DoutPrefixProvider* dpp, const aclspec_t & aclspec) const override ;
733- bool is_admin_of ( const rgw_owner& o ) const override ;
733+ bool is_admin ( ) const override ;
734734 bool is_owner_of (const rgw_owner& o) const override ;
735735 bool is_root () const override ;
736736 bool is_identity (const Principal& p) const override ;
@@ -813,7 +813,7 @@ class RoleApplier : public IdentityApplier {
813813 uint32_t get_perms_from_aclspec (const DoutPrefixProvider* dpp, const aclspec_t & aclspec) const override {
814814 return 0 ;
815815 }
816- bool is_admin_of ( const rgw_owner& o ) const override {
816+ bool is_admin ( ) const override {
817817 return false ;
818818 }
819819 bool is_owner_of (const rgw_owner& o) const override ;
@@ -861,7 +861,7 @@ class ServiceIdentity : public Identity {
861861 return RGW_PERM_NONE;
862862 }
863863
864- bool is_admin_of ( const rgw_owner& o ) const override {
864+ bool is_admin ( ) const override {
865865 return false ;
866866 }
867867
0 commit comments