mirror of
https://github.com/sismics/docs.git
synced 2024-11-25 07:07:57 +01:00
Fix tag-colors inside inherited acl
This commit is contained in:
parent
1346dd3616
commit
1d66b47f5f
@ -104,6 +104,7 @@ public class DocumentResource extends BaseResource {
|
|||||||
* @apiSuccess {String="READ","WRITE"} inherited_acls.perm Permission
|
* @apiSuccess {String="READ","WRITE"} inherited_acls.perm Permission
|
||||||
* @apiSuccess {String} inherited_acls.source_id Source ID
|
* @apiSuccess {String} inherited_acls.source_id Source ID
|
||||||
* @apiSuccess {String} inherited_acls.source_name Source name
|
* @apiSuccess {String} inherited_acls.source_name Source name
|
||||||
|
* @apiSuccess {String} inherited_acls.source_color The color of the Source
|
||||||
* @apiSuccess {String} inherited_acls.id ID
|
* @apiSuccess {String} inherited_acls.id ID
|
||||||
* @apiSuccess {String} inherited_acls.name Target name
|
* @apiSuccess {String} inherited_acls.name Target name
|
||||||
* @apiSuccess {String="USER","GROUP","SHARE"} inherited_acls.type Target type
|
* @apiSuccess {String="USER","GROUP","SHARE"} inherited_acls.type Target type
|
||||||
@ -196,6 +197,7 @@ public class DocumentResource extends BaseResource {
|
|||||||
.add("perm", aclDto.getPerm().name())
|
.add("perm", aclDto.getPerm().name())
|
||||||
.add("source_id", tagDto.getId())
|
.add("source_id", tagDto.getId())
|
||||||
.add("source_name", tagDto.getName())
|
.add("source_name", tagDto.getName())
|
||||||
|
.add("source_color", tagDto.getColor())
|
||||||
.add("id", aclDto.getTargetId())
|
.add("id", aclDto.getTargetId())
|
||||||
.add("name", JsonUtil.nullable(aclDto.getTargetName()))
|
.add("name", JsonUtil.nullable(aclDto.getTargetName()))
|
||||||
.add("type", aclDto.getTargetType()));
|
.add("type", aclDto.getTargetType()));
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
<tr ng-repeat="(id, acl) in inheritedAcls">
|
<tr ng-repeat="(id, acl) in inheritedAcls">
|
||||||
<td>
|
<td>
|
||||||
<a href="#/tag/{{ acl[0].source_id }}">
|
<a href="#/tag/{{ acl[0].source_id }}">
|
||||||
<span class="fas fa-tags"></span>
|
<span class="fas fa-tags" ng-style="{ 'color': acl[0].source_color }"></span>
|
||||||
{{ acl[0].source_name }}
|
{{ acl[0].source_name }}
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
|
Loading…
Reference in New Issue
Block a user