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