Comments (3)
Can you show reproduction steps for how to get into the state of having duplicated permissions in the first place?
from directus.
See the isse #22613 by using the REST API. The issue was found since a script ran and added the same role, collection and action twice.
Also the same problem is already mentioned in: #21965
https://github.com/tractr/directus-sync?tab=readme-ov-file#remove-permission-duplicates
I think it would be better to close the issue here and mention it in the original #21965 as of duplicate.
This way two permissions are created resulting in the soft lock state, as mentioned in the issue referenced.
const response = await fetch(`http://127.0.0.1/api/permissions`, {
agent: httpsAgent,
method: 'POST',
headers: {
"Cookie": headers.get('cookie'),
'Content-Type': 'application/json',
},
body: JSON.stringify({
role: permission.role,
collection: permission.collection,
action: permission.action,
fields: permission.fields,
permissions: permission.permissions,
validation: permission.validation,
}),
});
from directus.
Closing this in favor of #21965 the optimal solution here would be to prevent duplicate permissions instead of deduplicating them after the fact (that should be done as a one time fix)
from directus.
Related Issues (20)
- Include image extension when uploading images in preview URL & WYSIWYG content.
- Import of a JSON File with approx. 30.000 rows -> Failure Message "This file´s data structure does not match the collection." But after 1-2 hours datas are correctly imported.
- Updating Directus Version from 10.8 to 10.12 HOT 6
- Incorrect types infered for M2O/M2M relations in SDK for query filter
- Records with custom permission are not available in the API. HOT 2
- Numeric Fields for Labels Display - Configuration type problem
- Flows logs are not shown in flow sidebar HOT 1
- Flows - unable to use id/key in payload from Read Data operation HOT 1
- SDK type error on readItems when using 'datetime' literal HOT 3
- Make flow names & descriptions translatable
- The s3 file health-xxxxx generated by the health check was not cleared successfully HOT 3
- `items.read` doesn't seem to trigger every time
- Some operations are missing when querying via `/operations` endpoint HOT 1
- Multiple API Calls Triggered on Typing in Any Field HOT 1
- Schema import issue: `A primary key should not be a foreign key`
- Relational groupBy not implemented HOT 1
- Ability to expand/collapse all collections in data model HOT 1
- Api: Content version does not return relational data HOT 7
- Query limit with a relational sort will not return the correct amount
- Subtitle Link Undefined HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from directus.