Comments (1)
@fumiX/entwickler We have the basic set of permissions as described above:
fuBlog/common/src/entity/permission/UserRolePermissions.ts
Lines 1 to 21 in f52b582
At the moment we also have four roles that each give the user exactly one of these four permissions:
fuBlog/common/src/entity/UserRole.ts
Lines 14 to 31 in f52b582
Now these roles were just meant as a placeholder for a more sensible set of roles. I'd propose these ones:
- Admin: all permissions (as soon as a user has
canEditUserRoles
, they could assign themselves any other role anyway) - Writer:
canCreatePost
- Editor:
canEditPost
,canDeletePost
Any comments on this, or other suggestions?
Sidenote: The concept for saving is as follows: In the user table an array of roles is persisted for each user. Both client and server are (without network calls) capable of converting a set of roles into a permission object, which has boolean attributes for what a user with that combination of roles is allowed to do.
from fublog.
Related Issues (20)
- Save progress in post creation form when leaving without saving
- Implement frontend for autocompletion for tags
- Auto-save drafts in backend in intervals HOT 1
- Fix posts search results
- Fix edit tags
- :mag: Search with special characters
- Post edit mode does not save short description HOT 1
- delete post not working HOT 1
- WordCloud sometimes not loading correct font HOT 1
- Clear search input on navigation HOT 1
- Remove console warnings of deprecated dependencies HOT 1
- Create Summary with openAI throws error 400 HOT 1
- Not possible to add images to existing post HOT 1
- The share images seem to lack a font in production HOT 1
- Implement Auto-save functionality
- Prevent users without permission from accessing certain pages
- Tags are sorted differently depending on the search term
- The blog should display its own version
- Modal backdrop does not disappear when closing AI modal
- Diagrams do not appear as images, but as source code
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 fublog.