The download/play counters are shown as long as long as download/play are enabled. I think they should honor the 'view post access counter' permission under access control, since download/play are "accesses" too.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | honor_access_counter_permission.patch_1.txt | 1.06 KB | luperry |
| #3 | honor_access_counter_permission.patch_0.txt | 1.06 KB | luperry |
| honor_access_counter_permission.patch.txt | 1017 bytes | luperry |
Comments
Comment #1
drewish commentedwhat module provides the "view post access counter" permission? because it's not in core... i don't think we should really be worrying about other modules permissions...
Comment #2
luperry commentedIt's provided by the statistics module, it is included in core.
Comment #3
luperry commentedadded a check for the statistics module, if it's enabled, it'll honor the permission, otherwise, the counter will be displayed regardless.
Comment #4
drewish commentedah, sorry, statistics isn't enabled by default so i didn't see it listed. does it make sense to test if the module is enabled before checking the acccess permissions? that seems like it'd make the purpose more obvious.
but, does anyone else think this is a problem?
Comment #5
luperry commentedYou are right, it should be checked before checking the permission. I was being a little sloppy there.
For me, it's more of a matter of consistency than a problem, though I would love to have some kind of control over it, whether it's re-using the access control from the statistics module or providing the access control from the audio module itself.
Comment #6
drewish commentedcan i get a +1 from someone else?
Comment #7
q0rban commentedI guess it makes sense to me... If i'm understanding the issue correctly: have it keep a count of views/downloads without actually showing it in the links?
If that's the case... +1
Otherwise, I think I need some more explanation..
Comment #8
luperry commentedto q0rban,
yes, that's basically it.
Comment #9
drewish commentedi'll probably add a comment explaining what the extra test is for.
Comment #10
marlowx commentedfor a band website...
its kinda cool to show how many downloads or plays the songs have gotten but you down't want to show other statistics to everyone...
any chance of having this be optional feature?
rawk on dudes!
Comment #11
q0rban commentedas I understand it, that's exactly what this patch accomplishes...
Comment #12
drewish commentedoh, right yeah so maybe we need our own permission? or is it worth that much trouble?
Comment #13
luperry commentedif that's the case, then it might be better to have a seperate permission for it.
Comment #14
drewish commentedwhen i get some time next week (it's finals) i'll look at modifying this.
Comment #15
drewish commenteda fix got committed: http://drupal.org/node/73286
Comment #16
(not verified) commented