Actually check if the caller is authorized.

Authored by stikonas on Mar 22 2018, 4:41 PM.