hasPermission and addPermission now work.