How to check whether the current user is Administrator or not on Mac using Cocoa.
There could be a scenario in which a application would need to know whether the user is Admin or not, before or after startup to allow/block user from using it’s certain functionalities. To achieve this kind of “Authorization” we need to ask user about his account password and check it against his username. To do…
read more