Description of the need
A module may want to do something conditional on whether a role has a permission. Other functions can be used in a roundabout way, but this would be simpler.
Proposed solution
A simple function called user_role_has_permission that takes a role name and a permission name and returns a boolean if the role has the permission.
Alternatives that have been considered
For now, I've added this code in my module.
Is there a Drupal or Backdrop contributed module that accomplishes this? no
Additional information
Add any other information or screenshots that would help.
Draft of feature description for Press Release (1 paragraph at most)
Backdrop now includes an additional function for modules to check whether a user role includes a permission.
PR added at https://github.com/backdrop/backdrop/pull/4486
Recent comments
Choosing to not use the "Page title combo" block on content can also be helpful if you want to arrange the "Page tabs" menu and "Page title" differently.
Block title combo and 2/3 things
I found a simple solution... In node.tpl.php i put. <?php print render($title_prefix); ?> <?php if (!empty($title)): ?> <?php if ($page): ?> <h1><?php print $title...
Block title combo and 2/3 things
It's not English. It's Globish :-) (Global + English). Like for Drupal Devel is not an option - I looked style guide but for me, it's not interesting. It's useful but it's just a one page...
Create a new theme - Starter theme