superdesk/superdesk-client-core

View on GitHub
scripts/apps/ingest/controllers/IngestSettingsController.ts

Summary

Maintainability
A
0 mins
Test Coverage
IngestSettingsController.$inject = ['$scope', 'privileges'];
export function IngestSettingsController($scope, privileges) {
    var userPrivileges = privileges.privileges;

    $scope.showIngest = Boolean(userPrivileges.ingest_providers);
    $scope.showRuleset = Boolean(userPrivileges.rule_sets);
    $scope.showRouting = Boolean(userPrivileges.routing_rules);
}