make sure the user owns the modified data

This commit is contained in:
Athou
2013-04-10 22:07:44 +02:00
parent b3edfb955f
commit 013922b96d
4 changed files with 34 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
<li>
<div ng-mouseenter="hovered=node" ng-mouseleave="hovered=null" class="pointer">
<div ng-mouseenter="hovered=node && node.id != 'all'" ng-mouseleave="hovered=null" class="pointer">
<div class="dropdown pull-right">
<a dropdown-toggle class="pull-right">
<i ng-show="hovered==node" class="icon icon-chevron-down"></i>

View File

@@ -149,6 +149,8 @@ module.directive('category', function($compile) {
if (result == 'ok') {
SubscriptionService.deleteCategory({
id : category.id
}, function() {
SubscriptionService.init();
});
}
});