08-06-2017, 02:21 PM
You also should modify the private toggle when toggled to 0 ~ line 65 you should run this too:
You don't want a private page to have reAuth.
Code:
(updateReAuth($pageId, 0))