mirror of
https://git.victorphan.net/basketballcantho/Teedy_custom.git
synced 2026-08-05 22:03:11 +07:00
Closes #93: Edit tag color and title in #/tag/id
This commit is contained in:
@@ -97,6 +97,14 @@ public class TagResource extends BaseResource {
|
||||
.add("name", tagDto.getName())
|
||||
.add("color", tagDto.getColor());
|
||||
|
||||
// Add the parent if its visible
|
||||
if (tagDto.getParentId() != null) {
|
||||
AclDao aclDao = new AclDao();
|
||||
if (aclDao.checkPermission(tagDto.getParentId(), PermType.READ, getTargetIdList(null))) {
|
||||
tag.add("parent", tagDto.getParentId());
|
||||
}
|
||||
}
|
||||
|
||||
// Add ACL
|
||||
AclUtil.addAcls(tag, id, getTargetIdList(null));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user