If it can return a different value, then it's not immediately a WTF. I imagine it might grant "edit" rights even if the boolean flag says otherwise (e.g. if you're a superuser). With complex logic behind access control this might actually be the right way to do it. It's a bit weird that it takes a Boolean and not the actual Role, but other than that I wouldn't pick on it.
H
hoppke
@hoppke
0
Reputation
1
Posts
5
Profile views
0
Followers
0
Following
Best posts made by hoppke
This user hasn't posted anything yet.
Latest posts made by hoppke
-
RE: Get boolean if boolean return boolean