The perm entry in the permission table is one of the last dark age places where we need to do LIKE queries to get the value.
This mode of storage makes it potentially break for permissions that are named similar to other permissions.
I think we could then (in order to reduce the number of SQL queries) cache the permissions for each role in the variable table.

Opinions?

Comments

drumm’s picture

+1
normalization++
etc.

jhriggs’s picture

See similar (but not duplicate) 12596 which is based on discussion in 12542.

coreb’s picture

Version: x.y.z » 6.x-dev

Moving out of the x.y.z queue into 6.x-dev. I have no idea if this is still viable or not anymore.

webchick’s picture

Yep, still an issue in 5.x/6.x.

Paul Natsuo Kishimoto’s picture

Subscribing.

kkaefer’s picture

Status: Active » Closed (duplicate)