calculate correct permissions while toggle the password protection