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> <type>boolean</type>
<default>false</default> <default>false</default>
</field> </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> </declaration>
</table> </table>
</database> </database>

View File

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

View File

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

View File

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

View File

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