$scope.untoggleAll = function() {
            angular.forEach($scope.auths,function(items) {
                angular.forEach(items, function(value) {
                    $scope.rights[value.id] = {base: 0, create: 0, update: 0, 'delete': 0 };
                });