It's not really worth having two capabilities for the same thing, but have to also duplicate the logic for dealing with them to know if you're admin or not.
Each capability has a constraint field which is a json object, this could just add an extra field inside it called {"admin": true} and then we can eliminate all the duplicated logic
It's not really worth having two capabilities for the same thing, but have to also duplicate the logic for dealing with them to know if you're admin or not.
Each capability has a constraint field which is a json object, this could just add an extra field inside it called
{"admin": true}
and then we can eliminate all the duplicated logic