checking for permissions on selfupdate