On Thu, Feb 13, 2014 at 10:31 AM, Joan Caparrós <[email protected]> wrote:
> Hi to everybody,
> after reading all the messages I don't see it clear, I have a file in a
> bundle that I embbed in a viewer.
> I would like to check if the user has the privileges to access to the
> file to include or not the viewer, I think that this is only possible
> modifying some code to delete the reference of the file.
> Someone know how to check it? In this way (modifying the code) or
> modifying the theme?

Hi Joan,

you can see the users/groups with read access to the bitstream in DRI.
The code that reads this information looks like this:

https://github.com/DSpace/DSpace/pull/188/files

Unfortunately, there is currently no information about the current
user/group in DRI. So the only other easy option I see is to try to
access it and check the HTTP return code.


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience.  Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to