Deprecate user_role_grant_permissions() and user_role_revoke_permissions()

Created on 21 June 2013, about 11 years ago
Updated 7 April 2023, about 1 year ago

Problem/Motivation

user.module has quite a few left-over helper functions from pre-config-entity days... Once #1872876: Turn role permission assignments into configuration. β†’ is resolved we can start to clean up user.module by removing those functions as RoleInterface will get a few nice methods for managing permissions. Also, things like user_role_names() really aren't required. That's 3 lines of code in a closure, same with loading or permission checks. We should change all the places (e.g. permission overview, etc.) to work with the full Role entity objects and use the methods that the RoleInterface exposes.

Proposed resolution

This issue will deprecate:

  • user_role_revoke_permissions()
  • user_role_grant_permissions()

There are other related issues for:

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ“Œ Task
Status

Needs work

Version

10.1 ✨

Component
User moduleΒ  β†’

Last updated about 7 hours ago

Created by

πŸ‡¦πŸ‡ΉAustria fubhy

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024