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

       Web browser: ---
             Bug #: 38171
           Summary: [SF] #autoedit error when user does not have edit
                    permissions (ex: anonymous editing disabled)
           Product: MediaWiki extensions
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: SemanticForms
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
    Classification: Unclassified
   Mobile Platform: ---


When a user does not have edit permissions, like anonymous editing is disabled
with $wgGroupPermissions['*']['edit'] = false; in LocalSettings.php, #autoedit
still attempts the edit and returns the following error:

Fatal error: Call to a member function setResponseCode() on a non-object in
/usr/home/coin/public_html/w/extensions/SemanticForms/includes/SF_AutoeditAPI.php
on line 63

#autoedit should probably be enhanced to make the link non-functional for
disallowed editors, and should perhaps be enhanced to permit optional styling
for the link to appear "grayed out" so it is somewhat apparent that it's an
element that should work in different circumstances, similar to grayed out form
elements. Another possible enhancement might be to allow alternative behavior
or text to be specified when the user does not have edit permissions.

-- 
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