-
-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat!: impersonate users #3042
feat!: impersonate users #3042
Conversation
return res | ||
.status(500) | ||
.send( | ||
`Error deleting content with id ${req.params.contentId}: ${error.message}` |
Check warning
Code scanning / CodeQL
Reflected cross-site scripting
res.send(`Content ${req.params.contentId} successfully deleted.`); | ||
res.status(200).end(); | ||
res.status(200).send( | ||
`Content ${req.params.contentId} successfully deleted.` |
Check warning
Code scanning / CodeQL
Reflected cross-site scripting
return res | ||
.status(500) | ||
.send( | ||
`Error deleting content with id ${req.params.contentId}: ${error.message}` |
Check warning
Code scanning / CodeQL
Exception text reinterpreted as HTML
: undefined | ||
} | ||
); | ||
res.send(content); | ||
res.status(200).end(); | ||
res.status(200).send(content); |
Check warning
Code scanning / CodeQL
Reflected cross-site scripting
res.status(500).end(error.message); | ||
console.error(error); | ||
res.status(error.httpStatusCode ? error.httpStatusCode : 500).send( | ||
error.message |
Check warning
Code scanning / CodeQL
Exception text reinterpreted as HTML
This PR implements the functionality to display other users' user states and to set the user state to read only.
The old permission system was replaced to simplify permission handling.: It had 'grown naturally' and needed an overhaul.
Issues with the old system were:
Now, it's the job of the manager objects to implement permission checks and not of the storage classes. That means all storage classes are now capable of working in a permission system and not just the S3 classes. There's also a single interface
IPermissionSystem
that implementations can pass into theH5PEditor
orH5PPlayer
constructors to have fine-grained control over who can do what.