add acl stuff
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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"> </span></a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user