add acl stuff

This commit is contained in:
Julius Haertl
2016-07-08 19:29:07 +02:00
parent 0b46412623
commit 82158f03a0
5 changed files with 26 additions and 2 deletions

View File

@@ -372,6 +372,22 @@
<type>boolean</type>
<default>false</default>
</field>
<index>
<unique>true</unique>
<field>
<name>board_id</name>
<sorting>ascending</sorting>
</field>
<field>
<name>type</name>
<sorting>ascending</sorting>
</field>
<field>
<name>participant</name>
<sorting>ascending</sorting>
</field>
</index>
</declaration>
</table>
</database>

View File

@@ -5,7 +5,7 @@
<description>My first ownCloud app</description>
<licence>AGPL</licence>
<author>Julius Härtl</author>
<version>0.0.1.11</version>
<version>0.0.1.13</version>
<namespace>Deck</namespace>
<category>other</category>
<dependencies>

View File

@@ -91,6 +91,10 @@ app.controller('BoardController', function ($rootScope, $scope, $stateParams, St
BoardService.addSharee(sharee);
$scope.status.addSharee = null;
}
$scope.deleteAcl = function(acl) {
acl.boardId = $scope.id;
BoardService.removeAcl(acl);
}
// TODO: move to filter?
// Lighten Color of the board for background usage
$scope.rgblight = function (hex) {

View File

@@ -199,6 +199,10 @@ app.controller('BoardController', ["$rootScope", "$scope", "$stateParams", "Stat
BoardService.addSharee(sharee);
$scope.status.addSharee = null;
}
$scope.deleteAcl = function(acl) {
acl.boardId = $scope.id;
BoardService.removeAcl(acl);
}
// TODO: move to filter?
// Lighten Color of the board for background usage
$scope.rgblight = function (hex) {

View File

@@ -50,7 +50,7 @@
<input type="checkbox" name="edit" class="permissions checkbox" checked="checked" id=checkbox-permission-{{ $index }}">
<label for="checkbox-permission-{{ $index }}">verwalten</label>
</span>
<a href="#"><span class="icon icon-delete"> </span></a>
<a ng-click="removeAcl(sharee)"><span class="icon icon-delete">&nbsp;</span></a>
</li>
</ul>