From 8d3b0d18cfc9e601b1582050c91b9569d6785f82 Mon Sep 17 00:00:00 2001 From: Yaroslav Bolyukin Date: Wed, 03 Mar 2021 08:31:48 +0000 Subject: [PATCH] refactor: remove sponsor permissions check As sponsor should have no unique permissions in sponsored collection --- --- a/pallets/nft/src/lib.rs +++ b/pallets/nft/src/lib.rs @@ -1876,21 +1876,6 @@ Ok(()) } - fn check_collection_sponsor( - collection_id: CollectionId, - subject: T::AccountId, - ) -> DispatchResult { - Self::collection_exists(collection_id)?; - let collection = >::get(collection_id).unwrap(); - - ensure!( - collection.sponsor_confirmed && - collection.sponsor == subject, - Error::::NoPermission, - ); - Ok(()) - } - fn is_item_owner(subject: T::AccountId, collection_id: CollectionId, item_id: TokenId) -> bool { let target_collection = >::get(collection_id).unwrap(); -- gitstuff