Closed Bug 508988 Opened 16 years ago Closed 16 years ago

Validator: source links don't work if source viewing is not enabled

Categories

(addons.mozilla.org Graveyard :: Developer Pages, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: davemgarrett, Assigned: rjwalsh)

References

()

Details

Attachments

(1 file)

If the validator spits out a message about a line of source it notes the file and line number and links this to the appropriate file in the source via the online viewer. If the add-on doesn't have this viewer enabled this doesn't work and you just get "This add-on is not viewable here.". Two possible solutions: 1) Let the developer use this even if it's disabled for the general public. 2) The lazy route: Just don't link there if it's disabled.
Hmm, good call. We should allow the developer, editors, and admins to view the source regardless of that flag.
Assignee: nobody → rjbuild1088
Target Milestone: --- → 5.0.9
Comment on attachment 393286 [details] [diff] [review] Allow developers to view their own source, even if the feature is disabled It would be nice to see the block of code to check of a user is a developer of an add-on as a function. Also, adding a test for this would help prevent it regressing.
Attachment #393286 - Flags: review?(clouserw) → review+
Fixed in (unit tests are in views/files/browse.test.php)
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Augh, no revision. Fixed in r49016
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: