Skip to content

Commit

Permalink
Filter admin functions for main-net (#1190)
Browse files Browse the repository at this point in the history
filter admin functions for main-net
  • Loading branch information
Chralt98 authored Nov 13, 2023
1 parent 9eeae56 commit 186a8ab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions runtime/zeitgeist/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ impl Contains<RuntimeCall> for IsCallable {
ScoringRule::RikiddoSigmoidFeeMarketEma,
};
use zrml_prediction_markets::Call::{
admin_move_market_to_closed, admin_move_market_to_resolved,
create_cpmm_market_and_deploy_assets, create_market, edit_market,
};

Expand Down Expand Up @@ -177,6 +178,8 @@ impl Contains<RuntimeCall> for IsCallable {
dispute_mechanism: Some(Court | SimpleDisputes),
..
} => false,
admin_move_market_to_closed { .. } => false,
admin_move_market_to_resolved { .. } => false,
_ => true,
}
}
Expand Down

0 comments on commit 186a8ab

Please sign in to comment.