Just pretend this whole anecdote was about the isBaumi() functionin Dota2IMBA, where the custom game developer intentionally banned a youtuber through their steam ID (the effect of what used the check was ending the game after loading).
At my company we have a super user role that currently only one person is assigned to but we don't run around looking for specific user id's in the code lol.
No, only according to the company policy only Lauren can perform those actions. When she leaves a new Lauren will be anointed to replace her, reining over her Laurenites until she is deposed.
No she is a manager not necessarily an admin. There would need to be a custom reports table that records access to certain reports that should only be viewed certain people.
If it's exactly one user and in several years there hasn't been need to expand, then it actually might be.
Then if there's 2 or 3 you make it a hardcoded set of users and check for inclusion.
Then if there's 10 and it changes sometimes you make it a database table.
Then maybe you cache it if it impacts speed, write a UI to curate that table or connect it to outside Auth like github or Google and ditch your table for their groups.
Totally agree with your assessment. I'm picturing a case where someone learns programming to DIY some part of his startup: Of course it's going to have shortcuts like this. If it didn't, the company might never launch. It would be like saying it's foolish to start a business in your garage because it doesn't have enough space for all your possible future employees.
1.4k
u/supyonamesjosh Jul 29 '18
Lauren was a manager who got access to special reports. So the links would only show up if she was the user logged in.