Skip to content
Snippets Groups Projects
Commit e1c0c4f8 authored by Timothee P's avatar Timothee P :sunflower:
Browse files

allow super contrib & moderator to modify published status & forbid them to delete others features

parent 8ad92bdc
No related branches found
No related tags found
2 merge requests!295Version 3.0.0,!269REDMINE_ISSUE-11834
......@@ -408,7 +408,6 @@ export default {
if (this.userStatus === 'Administrateur projet') return true; //* can delete all
//* others can delete only their own features
return feature.properties.creator.username === this.user.username;
},
canEditFeature(feature) {
......
......@@ -670,7 +670,6 @@ export default {
featureAPI.getPaginatedFeatures(url)
.then((data) => {
if (data) {
console.log({ data });
this.featuresCount = data.count;
this.previous = data.previous;
this.next = data.next;
......
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