SynoCommunity / spksrc

Cross compilation framework to create native packages for the Synology's NAS
https://synocommunity.com
Other
3.01k stars 1.23k forks source link

Hide Sabnzb, CouchPotato, and SickBeard on the Synology menu when logged in non- admin account #395

Closed dwhite456 closed 11 years ago

dwhite456 commented 11 years ago

Hi all-

Is there anyway to hide sab, sickbeard, and couchpotato in the menu when a non admin user is logged in? I put a password on the applications themselves but I would prefer to have a guest not see those app icons at all. Any thoughts? Synology says since they are 3rd party apps they cannot do anything to help with it.

Thanks

Diaoul commented 11 years ago

Ok well, it'll require some developments but that's possible.

dwhite456 commented 11 years ago

That would be great. I appreciate you all being so attentive to this board and users needs.

Omertron commented 11 years ago

Most of the applications have a username and password that you can enable before they can be used. That might help you temporarily.

dwhite456 commented 11 years ago

^ They do and I have them set. I just prefer some people not to know what programs I am using due to their nature.

Omertron commented 11 years ago

Understood :)

dwhite456 commented 11 years ago

oh and thanks for all your work on YAMJ. I am still rocking an old PCH A110

bru7us commented 11 years ago

It shouldn't be too hard to make this a configurable option in the installation wizard actually... but for the time being, if you want to apply the change just on your box you can change the "allUsers" parameter to false in the app configs:

/usr/syno/synoman/webman/3rdparty/couchpotatoserver/config /usr/syno/synoman/webman/3rdparty/sabnzbd/config /usr/syno/synoman/webman/3rdparty/sickbeard/config

Just open the files and change "allUsers": true to "allUsers": false

Diaoul commented 11 years ago

Feel free to submit a pull request for this feature, I'll gladly merge it.

dwhite456 commented 11 years ago

Brilliant bru7us...thanks that worked great. Thanks much appreciated Note: This does take out the icons for the admin users as well.

I think changing false to admin will allow the icon to show just for admin. Nope that didnt work!

bru7us commented 11 years ago

https://github.com/SynoCommunity/spksrc/pull/401

bru7us commented 11 years ago

@dwhite456: According to the developer guide document, allUsers will show for all users if set to true and only to admin if not set.

I tested setting to false and admin was still able to see the icon. In my testing, I accidentally left the value with a template setting ("@allUsers@") and it hid the icon for everyone, admin included - so I am going to assume that your change which caused admin users to lose the icon made the json invalid (like my error).

I just did some further testing now an confirmed that setting allUsers to false will allow any user who is in the system default "administrators" group to still have access to the icons. Please confirm that the solution did in fact work for you? or let me know if there were any problems outstanding.

THanks.

dwhite456 commented 11 years ago

Thanks bru7us- I lost my sickbeard icon to my admin login after making the change so that must of thrown me off. The other icons thus far have remained in my admin profile. Now to get my sickbeard icon back. Thanks again...I appreciate the follow up.

bru7us commented 11 years ago

It seems highly likely that you will find a typo in the 3rdparty/sickbeard/config file then. I'd start there - given thats all that should have changed. Look for a rogue comma, a missing colon, etc.