[REF] Cleanup on permission code
authoreileen <emcnaughton@wikimedia.org>
Fri, 12 Mar 2021 21:24:10 +0000 (10:24 +1300)
committereileen <emcnaughton@wikimedia.org>
Fri, 12 Mar 2021 21:24:10 +0000 (10:24 +1300)
commitb4d6a41186c38c6398d40993e19277a9db31a560
treee8001bf6c0cf093d652c433ab3fcc989a8d86dda
parent2bc16779fc507b4e17c899035716431eae1b145f
[REF] Cleanup on permission code

The function returns either an array of arrays or an array of the
first key in the array, depending on the 'desriptions' parameter.

This cleans it up so that instead of handling the descriptions
parameter in multiple places we get the array
in all cases and do the formatting at the end
CRM/Core/Permission.php
CRM/Core/Permission/Base.php