Skip to content
Snippets Groups Projects
Commit 516446d6 authored by Hugo SUBTIL's avatar Hugo SUBTIL
Browse files

fix: remove structure delete for users from structure-details

parent a9241a79
No related branches found
No related tags found
Loading
......@@ -234,7 +234,7 @@ export class StructureDetailsComponent implements OnInit {
});
}
public canDelete(): boolean {
if (this.profileService.isAdmin() || this.profileService.isLinkedToStructure(this.structure._id)) {
if (this.profileService.isAdmin()) {
return true;
}
return false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment