Skip to content

Commit

Permalink
#1403 Remove the permission check on case sharing page
Browse files Browse the repository at this point in the history
  • Loading branch information
nadouani committed Jul 15, 2020
1 parent 2934fe9 commit d3ca988
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions frontend/app/scripts/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -417,8 +417,7 @@ angular.module('thehive', [
}
},
guard: {
isSuperAdmin: false,
permissions: ['manageShare']
isSuperAdmin: false
}
})
.state('app.case.alerts', {
Expand Down Expand Up @@ -446,14 +445,14 @@ angular.module('thehive', [
task: function($q, $stateParams, CaseTaskSrv, NotificationSrv) {
var deferred = $q.defer();

CaseTaskSrv.get({
'taskId': $stateParams.itemId
}, function(data) {
deferred.resolve(data);
}, function(response) {
deferred.reject(response);
NotificationSrv.error('taskDetails', response.data, response.status);
});
CaseTaskSrv.getById($stateParams.itemId)
.then(function(data) {
deferred.resolve(data);
})
.catch(function(response) {
deferred.reject(response);
NotificationSrv.error('taskDetails', response.data, response.status);
});

return deferred.promise;
}
Expand Down

0 comments on commit d3ca988

Please sign in to comment.