Skip to content

Commit 6b1a91b

Browse files
committed
Make sso_xml and sso_url readonly on provider edit
1 parent 76c74a6 commit 6b1a91b

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

views/authentication/provider_edit.tt

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
[% END %]
3838
<div class="col-lg-5">
3939
[%
40-
IF field.type == "freetext";
40+
IF field.type == "freetext" AND (field.name != 'sso_url' AND field.name != 'sso_xml');
4141
INCLUDE fields/input.tt
4242
id = field.name
4343
name = field.name
@@ -49,6 +49,18 @@
4949
sub_field = ""
5050
sub_params = {};
5151

52+
ELSIF field.type == "freetext" AND (field.name == 'sso_url' OR field.name == 'sso_xml');
53+
INCLUDE fields/input.tt
54+
id = field.name
55+
name = field.name
56+
value = editprovider.${field.name}
57+
label = field.description
58+
placeholder = field.placeholder
59+
type = "text"
60+
is_readonly = 1
61+
sub_field = ""
62+
sub_params = {};
63+
5264
ELSIF field.type == "dropdown";
5365
INCLUDE fields/select_single.tt
5466
id = field.name

0 commit comments

Comments
 (0)