2 ms·
Maybe it was a common utility function called from 4 applications that looked into 40 files to see if you had permissions to do something or to see if an operat
by weaksauce 16y ago
Maybe it was a common utility function called from 4 applications that looked into 40 files to see if you had permissions to do something or to see if an operation was safe to do?
Seems excessive but....
- cschneid 16y agoMore likely it was a call like: if (permissions["whatever"]) { Do code} instead of if (has_permission("whatever")) And the first if was copy/pasted across the entire app. So when you have to change the logic of that permission, you don't have a central, official, way of figuring it, instead you have checks all over the app.
- TheSandyWalsh 16y agoYup, that was pretty well it.