File tree Expand file tree Collapse file tree
metadata/databases/default/tables Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -148,6 +148,13 @@ array_relationships:
148148 table :
149149 name : player_unused_utility
150150 schema : public
151+ - name : sanctions
152+ using :
153+ foreign_key_constraint_on :
154+ column : player_steam_id
155+ table :
156+ name : player_sanctions
157+ schema : public
151158 - name : team_invites
152159 using :
153160 foreign_key_constraint_on :
Original file line number Diff line number Diff line change 55changing_player_role text ;
66BEGIN
77 IF TG_OP = ' UPDATE' AND NEW .role != OLD .role THEN
8- SELECT current_setting(' hasura.user' )::jsonb - >> ' x-hasura-role' INTO changing_player_role;
8+ SELECT current_setting(' hasura.user' , true )::jsonb - >> ' x-hasura-role' INTO changing_player_role;
99
1010 IF NOT is_role_below(OLD .role , changing_player_role) THEN
1111 RAISE EXCEPTION ' You cannot change the role of a player above your own' USING ERRCODE = ' 22000' ;
You can’t perform that action at this time.
0 commit comments