mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
78243: Feedback 2021-04-29
This commit is contained in:
@@ -26,6 +26,6 @@ export class ItemPageBitstreamsGuard extends DsoPageSingleFeatureGuard<Item> {
|
|||||||
* Check manage bitstreams authorization rights
|
* Check manage bitstreams authorization rights
|
||||||
*/
|
*/
|
||||||
getFeatureID(next: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<FeatureID> {
|
getFeatureID(next: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<FeatureID> {
|
||||||
return observableOf(FeatureID.CanManageBitstreams);
|
return observableOf(FeatureID.CanManageBitstreamBundles);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -83,7 +83,7 @@ export class ItemStatusComponent implements OnInit {
|
|||||||
if (item.isWithdrawn) {
|
if (item.isWithdrawn) {
|
||||||
operations.push(new ItemOperation('reinstate', this.getCurrentUrl(item) + '/reinstate', FeatureID.ReinstateItem, true));
|
operations.push(new ItemOperation('reinstate', this.getCurrentUrl(item) + '/reinstate', FeatureID.ReinstateItem, true));
|
||||||
} else {
|
} else {
|
||||||
operations.push(new ItemOperation('reinstate', this.getCurrentUrl(item) + '/reinstate', FeatureID.WithdrawItem, true));
|
operations.push(new ItemOperation('withdraw', this.getCurrentUrl(item) + '/withdraw', FeatureID.WithdrawItem, true));
|
||||||
}
|
}
|
||||||
if (item.isDiscoverable) {
|
if (item.isDiscoverable) {
|
||||||
operations.push(new ItemOperation('private', this.getCurrentUrl(item) + '/private', FeatureID.CanMakePrivate, true));
|
operations.push(new ItemOperation('private', this.getCurrentUrl(item) + '/private', FeatureID.CanMakePrivate, true));
|
||||||
|
@@ -14,7 +14,7 @@ export enum FeatureID {
|
|||||||
IsCommunityAdmin = 'isCommunityAdmin',
|
IsCommunityAdmin = 'isCommunityAdmin',
|
||||||
CanDownload = 'canDownload',
|
CanDownload = 'canDownload',
|
||||||
CanManageVersions = 'canManageVersions',
|
CanManageVersions = 'canManageVersions',
|
||||||
CanManageBitstreams = 'canManageBitstreams',
|
CanManageBitstreamBundles = 'canManageBitstreamBundles',
|
||||||
CanManageRelationships = 'canManageRelationships',
|
CanManageRelationships = 'canManageRelationships',
|
||||||
CanManageMappings = 'canManageMappings',
|
CanManageMappings = 'canManageMappings',
|
||||||
CanManagePolicies = 'canManagePolicies',
|
CanManagePolicies = 'canManagePolicies',
|
||||||
|
Reference in New Issue
Block a user