On master the effective user for users in the jobadder group is set to 0, i.e. root.
This is not just a cosmetic issue.
Jobs submitted by users in the jobadder group were run as root, effectively granting root access to all users in the jobadder group.
This PR revises how a user being admin is checked to prevent this.
I think we should just disallow submitting jobs for other users (or maybe allow only root to do so?).
I think it is not a very useful feature anyways and security is more important.
Fixes https://github.com/DistributedTaskScheduling/JobAdder/issues/168 .
On master the effective user for users in the jobadder group is set to 0, i.e. root. This is not just a cosmetic issue. Jobs submitted by users in the jobadder group were run as root, effectively granting root access to all users in the jobadder group. This PR revises how a user being admin is checked to prevent this.