Comments (1)
As per my understanding, a separate read permission is not required. Permissions framework allows specific features on a page to be restricted and that's how announcements page is built. Only the action buttons are removed/disabled if user does not have proper access.
Create, update & delete actions can be restricted with below permissions. Users not belonging to backstageAdminGroup
can still see the announcements.
if (
isPermission(request.permission, announcementCreatePermission) ||
isPermission(request.permission, announcementUpdatePermission) ||
isPermission(request.permission, announcementDeletePermission)
) {
if (user?.identity.ownershipEntityRefs.includes(this.config.getConfig('permission').getString('backstageAdminGroup'))) {
return { result: AuthorizeResult.ALLOW };
}
return { result: AuthorizeResult.DENY };
}
Do agree on the second point though. Categories page needs to be restricted for read only users. IMO, the categories button on the announcements page & the route itself can be restricted as I don't see a use case where category list will be of value to read only users.
from backstage-plugin-announcements.
Related Issues (20)
- feat: metrics and stats on announcements HOT 3
- feat: sticky announcements
- How to customize NewAnnouncementBanner? HOT 1
- No implementation available for apiRef{plugin.announcements.service}
- bug: attempting to create an announcement without a body throws 500 error HOT 1
- feat: integrate with alert-api HOT 1
- Announcement collator failing HOT 3
- Broadcast announcements through other communication tools HOT 1
- Question - Consider additional maintainers? HOT 3
- Announcements search issue
- feat: Convert the display name value from name to title
- Error when testing out the plugin HOT 1
- [Error] After update Backstage v1.20.3 HOT 3
- How to add announcement banner and announcements on page HOT 1
- How to use permissions in an instance that already has a set of rules?
- On clicking the Submit button, How to make it redirect to the announcement page and saving the announcement
- Upgrade Backstage Dependencies + Add New Backend System Support
- How to have different announcement sources within the same portal?
- Please archive this repository
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 backstage-plugin-announcements.