Last modified: 2014-02-12 23:38:32 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T40171, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 38171 - [SF] #autoedit error when user does not have edit permissions (ex: anonymous editing disabled)
[SF] #autoedit error when user does not have edit permissions (ex: anonymous ...
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
SemanticForms (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Yaron Koren
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-07-04 22:29 UTC by badon
Modified: 2014-02-12 23:38 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description badon 2012-07-04 22:29:42 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links