Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Genesys PGR
Genesys Backend
Commits
afe49708
Commit
afe49708
authored
May 17, 2018
by
Matija Obreza
Browse files
Updated ACL editor for app-blocks:1.4-SNAPSHOT
parent
417535ed
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/genesys2/server/servlet/controller/AclEditController.java
View file @
afe49708
...
...
@@ -48,7 +48,7 @@ public class AclEditController extends BaseController {
}
model
.
addAttribute
(
"aclSids"
,
aclService
.
getSids
(
id
,
className
));
// Map<AclSid, Map<Permission, Boolean>>
model
.
addAttribute
(
"
aclEntrie
s"
,
aclService
.
getPermissions
(
id
,
className
));
model
.
addAttribute
(
"
sidPermission
s"
,
aclService
.
getPermissions
(
id
,
className
));
model
.
addAttribute
(
"backUrl"
,
backUrl
);
model
.
addAttribute
(
"roles"
,
UserRole
.
values
());
...
...
src/main/webapp/WEB-INF/jsp/acl/editor.jsp
View file @
afe49708
...
...
@@ -30,18 +30,18 @@
</thead>
<tbody>
<c:forEach
items=
"
${
aclSids
}
"
var=
"aclSid
"
varStatus=
"status"
>
<c:set
var=
"sid"
value=
"
${
jspHelper
.
aclSidById
(
aclS
id
.
id
)
}
"
/>
<c:forEach
items=
"
${
sidPermissions
}
"
var=
"sidPermission
"
varStatus=
"status"
>
<c:set
var=
"sid"
value=
"
${
jspHelper
.
aclSidById
(
sidPermission
.
s
id
.
id
)
}
"
/>
<tr
class=
"${status.count % 2 == 0 ? 'even' : 'odd'}"
>
<input
type=
"hidden"
name=
"sid"
class=
"aclSid"
value=
"${sidPermission.sid.id}"
/>
<td>
<c:out
value=
"
${
sid
.
fullName
}
"
/>
<c:catch><a
href=
"
<c:url
value=
'mailto:${sid.email}'
/>
"
><c:out
value=
"
${
sid
.
email
}
"
/></a></c:catch>
<c:catch><c:if
test=
"
${
sid
.
email
ne
null
}
"
><a
href=
"
<c:url
value=
'mailto:${sid.email}'
/>
"
><c:out
value=
"
${
sid
.
email
}
"
/></a></c:if></c:catch>
<c:catch><c:if
test=
"
${
sid
.
title
ne
null
}
"
><c:out
value=
"
${
sid
.
title
}
"
/></c:if></c:catch>
</td>
<input
type=
"hidden"
name=
"sid"
class=
"aclSid"
value=
"${aclSid.id}"
/>
<c:forEach
items=
"
${
aclPermissions
}
"
var=
"aclPermission"
>
<td><input
type=
"checkbox"
value=
"1"
class=
"check"
name=
"permissionValue${aclPermission.mask}"
id=
"permissionValue${aclPermission.mask}"
disabled=
"disabled"
${
aclEntries
[
aclSid.sid
][
aclPermission.mask
]
?
'
checked
'
:
''
}
/></td>
<td><input
type=
"checkbox"
value=
"1"
class=
"check"
name=
"permissionValue${aclPermission.mask}"
id=
"permissionValue${aclPermission.mask}"
disabled=
"disabled"
${
sidPermission.isGranting
(
aclPermission.mask
)
?
'
checked
'
:
''
}
/></td>
</c:forEach>
<td>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment