                                      :id "privacy-private"
                                      :name "privacy"
                                      :checked (keyword-identical? :document.privacy/private (:document/privacy doc))
-                                     :disabled (boolean cant-edit-privacy?)
-                                     :onChange #(if cant-edit-privacy?
-                                                  (utils/stop-event %)
+                                     :disabled (not can-edit-privacy?)
+                                     :onChange #(if can-edit-privacy?
                                                   (cast! :document-privacy-changed
                                                          {:doc-id doc-id
-                                                          :setting :document.privacy/private}))}]
-              [:label.privacy-label {:class (when cant-edit-privacy? "disabled")
-                                     :title (when cant-edit-privacy? "You must be the owner of this doc to change its privacy.")
+                                                          :setting :document.privacy/private})
+                                                  (utils/stop-event %))}]
+              [:label.privacy-label {:class (when-not can-edit-privacy? "disabled")
+                                     :title (when-not can-edit-privacy? "You must be the owner of this doc to change its privacy.")
                                      :for "privacy-private"
                                      :role "button"}
                (common/icon :private)
                [:span "Private"]
-               (when cant-edit-privacy?
+               (when-not can-edit-privacy?
                  [:small "(privacy change requires owner)"])]))]])))))
 
 (defn export [app owner]

      (let [{:keys [cast! db]} (om/get-shared owner)
            doc-id (:document/id app)
            doc (doc-model/find-by-id @db doc-id)
            no-private-docs? (not (contains? (get-in app [:cust :flags]) :flags/private-docs))
            cant-edit-privacy? (when-not (:team app)
                                 (not (auth/owner? @db doc (get-in app [:cust]))))]
        (html
         [:section.menu-view
          (case (:document/privacy doc)

                                  :name "privacy"
                                  :checked (keyword-identical? :document.privacy/public (:document/privacy doc))
                                  :disabled (keyword-identical? :document.privacy/public (:document/privacy doc))
                                  :onChange #(if can-edit-privacy?
                                               (cast! :document-privacy-changed
                                                      {:doc-id doc-id
                                                       :setting :document.privacy/public})
                                               (utils/stop-event %))}]
           [:label.privacy-label {:class (when-not can-edit-privacy? "disabled")
                                  :title (when-not can-edit-privacy? "You must be the owner of this doc to change its privacy.")
                                  :for "privacy-public"
                                  :role "button"}
            (common/icon :public)
            [:span "Public"]
            (when-not can-edit-privacy?
              [:small "(privacy change requires owner)"])]
           [:input.privacy-radio {:type "radio"
                                  :hidden "true"
                                  :id "privacy-read-only"
                                  :name "privacy"
                                  :checked (keyword-identical? :document.privacy/read-only (:document/privacy doc))
                                  :disabled (not can-edit-privacy?)
                                  :onChange #(if can-edit-privacy?
                                               (cast! :document-privacy-changed
                                                      {:doc-id doc-id
                                                       :setting :document.privacy/read-only})
                                               (utils/stop-event %))}]
           [:label.privacy-label {:class (when-not can-edit-privacy? "disabled")
                                  :title (when-not can-edit-privacy? "You must be the owner of this doc to change its privacy.")
                                  :for "privacy-read-only"
                                  :role "button"}
            (common/icon :read-only)
            [:span "Read-only"]
            (when-not can-edit-privacy?
              [:small "(privacy change requires owner)"])]
           (if (and can-edit-privacy? (not team?) (not private-docs-flag?))
             [:a.vein.external {:href "/pricing"}
              (common/icon :private)
              [:span "Private"]
