public User validateAdminPrivilege(String currentUser) throws UserAccessException {
		synchronized (fileSystem) {
			User user = getUser(currentUser);
			if (user == null) {
				throw new UserAccessException("User " + currentUser + " was not found in the '" +
					name + "' repository access list.");
			}
			if (!user.isAdmin()) {
				throw new UserAccessException(
					"User " + currentUser + " does not have Admin privilege.");
			}
			return user;
		}
	}
Verify that the specified currentUser has Admin privilege within this repository.
@param currentUser current user
@return user object for currentUser
@throws UserAccessException thrown if currentUser does not have Admin privilege
Ghidra/Features/GhidraServer/src/main/java/ghidra/server/Repository.java