solved Little Code Help

Dazed
Dazed
@dazed
7 years ago
1,022 posts
I have the below code that will display songs for download for our dj's. I see it as an admin but the dj quota is no longer picking this up. It broke with the update but it is odd since it works as an admin.

Anyone see anything that would cause the quota not to see the download link?


					{if $item.audio_dj_download == 'on' && (jrUser_is_admin() || (jrUser_is_logged_in() && $_user.profile_quota_id == $_conf.paDJDownload_dj_quota))}
		<div class="add_to_cart_section" title="DJ Download"><span class="add_to_cart_price">Mix DJ</span><a href="{$_conf['jrCore_base_url']}/audio/djdownload/audio_file/{$item._item_id}">{jrCore_icon icon="download" }</a></div>
		{/if}

updated by @dazed: 12/16/17 10:55:08PM
brian
@brian
7 years ago
10,148 posts
What URL are you seeing this on?


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Dazed
Dazed
@dazed
7 years ago
1,022 posts
Hey Brian - you can use https://www.mixposure.com/dazed/audio and as admin you will see MixDJ with a download link. Paul did this module for me a few years ago so dj's could download full songs if they were for sale or not downloadable to the public.

I out Dazed in that quota and you can use the same admin pass on it so you can see the differences.
brian
@brian
7 years ago
10,148 posts
I'm not seeing any issues here, or I'm not understanding the issue. I'm logged in as "dazed" in 1 browser, and "admin" in another, and with both I see the download link. I was assuming that I would _not_ see it when logged in as "dazed" but I'm not seeing an issues with it - I see the button and can download the file.

Maybe log out and back in again?


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Dazed
Dazed
@dazed
7 years ago
1,022 posts
wow that is weird. I see it now also. all i did was change the password, yeah it has not been visible to any of the dj's so let me see what they see. Thanks Brian
brian
@brian
7 years ago
10,148 posts
Have them log out and back in - remember I updated your Redis caching system as well, so it could be a byproduct of that update.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Dazed
Dazed
@dazed
7 years ago
1,022 posts
good point.