Skip to content

Commit b3d42d6

Browse files
authored
Merge pull request #8 from e-gov/PH-1067_update-requests
PH-1067 fix add_mandate procedure
2 parents d623b14 + 45cd8f2 commit b3d42d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/pg_data/03a_function_add_mandate.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ BEGIN
4040
end if;
4141

4242

43-
IF p_can_sub_delegate = TRUE AND rec_role_conf.can_sub_delegate = FALSE THEN
44-
RAISE 'The role with code=% is defined with can_sub_delegate=FALSE but mandate to be added has it true', p_role USING ERRCODE = '23011';
43+
IF p_can_sub_delegate = TRUE AND rec_role_conf.sub_delegable = 'NO' THEN
44+
RAISE 'The role with code=% is defined with sub_delegable=NO but mandate to be added has it true', p_role USING ERRCODE = '23011';
4545
end if;
4646

4747
-- Insert or update person record corresponding to representee

0 commit comments

Comments
 (0)