@cronapp/templates 2.9.2-SP.19 → 2.9.2-SP.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -16,28 +16,38 @@ public class SecurityPermission implements Permission {
|
|
|
16
16
|
public void loadSecurityPermission(HttpSecurity http) throws Exception {
|
|
17
17
|
|
|
18
18
|
// public
|
|
19
|
+
<#if listPermitAll??>
|
|
19
20
|
<#list listPermitAll as role>
|
|
20
21
|
${role}
|
|
21
22
|
</#list>
|
|
22
|
-
|
|
23
|
+
</#if>
|
|
24
|
+
|
|
23
25
|
// role hasAuthority permission
|
|
26
|
+
<#if listHasAuthority??>
|
|
24
27
|
<#list listHasAuthority as role>
|
|
25
28
|
${role}
|
|
26
29
|
</#list>
|
|
27
|
-
|
|
30
|
+
</#if>
|
|
31
|
+
|
|
28
32
|
// role hasAnyAuthority permission
|
|
33
|
+
<#if listHasAnyAuthority??>
|
|
29
34
|
<#list listHasAnyAuthority as role>
|
|
30
35
|
${role}
|
|
31
36
|
</#list>
|
|
37
|
+
</#if>
|
|
32
38
|
|
|
33
39
|
// autenticated
|
|
40
|
+
<#if listAutenticated??>
|
|
34
41
|
<#list listAutenticated as role>
|
|
35
42
|
${role}
|
|
36
43
|
</#list>
|
|
44
|
+
</#if>
|
|
37
45
|
|
|
38
46
|
// deny all
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
47
|
+
<#if listDenyAll??>
|
|
48
|
+
<#list listDenyAll as role>
|
|
49
|
+
${role}
|
|
50
|
+
</#list>
|
|
51
|
+
</#if>
|
|
42
52
|
}
|
|
43
|
-
}
|
|
53
|
+
}
|