Bug 22483: Restore undef behaviour
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 8 Mar 2019 16:52:07 +0000 (16:52 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 8 Mar 2019 18:53:10 +0000 (15:53 -0300)
commit088e0243bf7cd16f7769ddbc2eeefd5857c471f7
tree729b69018d1eb322070bea47990b2f3e19ac4a82
parent4cb1a47d0368640b3e10f51d83b0ce8ea5dd953e
Bug 22483: Restore undef behaviour

Turns out that we rely heavily on the side effect that passing undef
to haspermission would always return true no matter what permissions
or lack of permissions you had.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
C4/Auth.pm
t/db_dependent/Auth/haspermission.t