Fix has_perm call.

Change-Id: Ic82904a81672be5c8bceed7e9a3a3d99542ba755