Comments (5)
Found the issue. I had assigned another role to admin for debugging. When I removed it, intervention works as it should like you say.
My bad! I guess this wouldn't happen too often, so it's probably nothing to worry about.
from intervention.
Hi @tablufc88 ,
What plugin are you using (if any) to implement multiple user roles? I would like to re-create my side to test and see if I can find a viable solution.
from intervention.
Hey @darrenjacoby,
Not using a plugin, just using Stripe to assign roles based on subscription type with $user->add_role( $siteRole );$user->add_role( $planRole );
It seems that you can assign multiple roles using this plugin - https://en-au.wordpress.org/plugins/user-role-editor/
from intervention.
OK cool, will test with $user->add_role()
, just wanted to make sure that was the route you were taking!
from intervention.
Hi @tablufc88 ,
Tested this with the plugin above, and it seems to work as should.
E.g. With the following, I can't see any updates when logged in as admin.
'wp-admin.all' => [ 'common.adminbar.wp' ], 'wp-admin.all-not-administrator' => [ 'common.updates' ]
This sounds correct though. Any user role with an administrator
user role won't have common.updates
removed, as it applies to all user roles excluding the administrator
role.
Let me know if I'm understanding the above correctly.
from intervention.
Related Issues (20)
- Composer dependency incompatibilities with Sage 9 HOT 7
- Remove activate and deactivate actions when defining plugin state in config HOT 5
- Publish plugin to wordpress.org HOT 3
- [application.media] HOT 18
- Add support for WordPress code style/format/linting HOT 3
- Fatal error HOT 22
- [Featured Request] Additional Page Attribute Settings HOT 3
- Post types with "-" HOT 4
- Upgrade illuminate/collections HOT 2
- Settings to disable WP components
- Deprecated messages on PHP 8.2 HOT 1
- Need help to install plugin HOT 3
- Docker + Roots wrong composer inclusion path HOT 7
- Plugin could not be activated because it triggered a fatal error HOT 3
- Noob trouble trying to get Intervention working. HOT 7
- Something goes wrong setting options / saving to database HOT 7
- Rename the master branch to main HOT 2
- Feature idea: add theme supports HOT 2
- Translatable labels HOT 2
- Setting timezone through intervention without setting it in the DB: new posts are scheduled HOT 4
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 intervention.