https://bugzilla.wikimedia.org/show_bug.cgi?id=37987

       Web browser: ---
             Bug #: 37987
           Summary: PropertyEditTool should know whether the current user
                    can actually edit the current page
           Product: MediaWiki extensions
           Version: master
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: WikidataRepo
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
    Classification: Unclassified
   Mobile Platform: ---


I suggest to evaluate $title->userCan() on the current page, and pass it as a
JS config variable (perhaps userCanEdit) to the PropertyEditTool. If
userCanEdit is false, the edit functionality should be disable for the page.

Note that we can not suppress the edit features in the output of ItemView,
because that gets shared between different users via the parser cache.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to