Modifying set_permissions