• April 21, 2025, 08:51:13 PM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

This Forum Beta is ONLY for registered owners of D-Link products in the USA for which we have created boards at this time.

Author Topic: Non admin user can't access photo center  (Read 2934 times)

crudo

  • Level 1 Member
  • *
  • Posts: 2
Non admin user can't access photo center
« on: June 23, 2014, 06:30:37 AM »

I have the ShareCenter DNS-320L running the firmware version 1.03, date: 09/04/2013.
The non admin users has no option "My photos" in home page. How can I give access to this app for all users?
« Last Edit: June 23, 2014, 08:28:57 AM by crudo »
Logged

crudo

  • Level 1 Member
  • *
  • Posts: 2
Re: Non admin user can't access photo center
« Reply #1 on: July 12, 2014, 12:42:58 PM »

I check the javascript code, home.js, and I found this:

Code: [Select]
//My Folder - My photo
var array = new Array();
if(PHOTO_CENTER_FUNCTION==1)
{
if (f_login_user == "admin")
{
array = new Array("my_photos","myphotos","/web/images/management/","my_photos","/photo_center/index.html","null",_T('_menu','my_photos'),"1","1");
}
else
{
array = new Array("my_photos","myphotos","/web/images/management/","my_photos","/photo_center/index.html","null",_T('_menu','my_photos'),"1","0");
}

HOME_FILDER_LST.push(array)
}

Yet in the same file:
Code: [Select]
function my_folder_list()
{
var html_desc = "";
for(var i=0;i<HOME_FILDER_LST.length;i++)
{
if (parseInt(HOME_FILDER_LST[i][7]) == 1)
{
if (parseInt(HOME_FILDER_LST[i][8]) == 1) //enable
{
html_desc += "\n<li id='"+HOME_FILDER_LST[i][0].toString()+"'>";
html_desc += "<img id='icon_"+HOME_FILDER_LST[i][0].toString()+"' src='"+HOME_FILDER_LST[i][2].toString()+HOME_FILDER_LST[i][1].toString()+"_off.png'>";
//html_desc += "<div class=\"desc\" id='desc_"+HOME_FILDER_LST[i][0].toString()+"'>"+HOME_FILDER_LST[i][6].toString()+"</div></li>";
html_desc += "<div class=\"desc\" id='desc_"+HOME_FILDER_LST[i][0].toString()+"'>"+get_mtuilang_name(HOME_FILDER_LST[i][0].toString(),HOME_FILDER_LST[i][6].toString())+"</div></li>";
}//disable
else
{
html_desc += "\n<li id='"+HOME_FILDER_LST[i][0].toString()+"'>";
html_desc += "<img id='icon_"+HOME_FILDER_LST[i][0].toString()+"' src='"+HOME_FILDER_LST[i][2].toString()+HOME_FILDER_LST[i][1].toString()+"_display.png'>";
html_desc += "<div class=\"desc\" id='desc_"+HOME_FILDER_LST[i][0].toString()+"'>"+get_mtuilang_name(HOME_FILDER_LST[i][0].toString(),HOME_FILDER_LST[i][6].toString())+"</div></li>";
}
}
}

$("#My_Folder_List").html(html_desc);

//
// //For My Cloud
// $("#my_cloud img").tooltip({
// // each trashcan image works as a trigger
// offset: [45, 0],
// tip: '#tooltip',
// position:'top right' //'top center','bottom left'
// });
}

So, seems that the non admin users can't access the photo center. Is this right? If so, why not?
Logged