[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[EP-tech] currrent_user => usertype



HI Avi,
There was a similar question on the tech-list a while ago.
The tech-list archives are currently a bit broken (when searching from e.g/ Google), but the thread 'Access user via javascript?' listed here:
http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/2016-March/subject.html
might point you in the right direction.

A static page itself doesn't have access to the session information, but the template renders it does (if you're using the 'dynamic template').

If you need some more explanation of that thread, let me know!
Cheers,
John

From: eprints-tech-bounces at ecs.soton.ac.uk [mailto:eprints-tech-bounces at ecs.soton.ac.uk] On Behalf Of Stenger, Avischai
Sent: 01 June 2017 15:49
To: eprints-tech at ecs.soton.ac.uk
Subject: Re: [EP-tech] currrent_user => usertype

Hi Adam,


i what to show a button only for usertype ?admin" or ?editor". all other user shouldn?t see it.

Avi


Am 01.06.2017 um 16:37 schrieb Adam Field <adam at adamfield.net<mailto:adam at adamfield.net>>:

Hi Avi

                I don?t think so.  What?s your use-case?

--
Adam

From: <eprints-tech-bounces at ecs.soton.ac.uk<mailto:eprints-tech-bounces at ecs.soton.ac.uk>> on behalf of "Stenger, Avischai" <avischai.stenger at ulb.tu-darmstadt.de<mailto:avischai.stenger at ulb.tu-darmstadt.de>>
Reply-To: <eprints-tech at ecs.soton.ac.uk<mailto:eprints-tech at ecs.soton.ac.uk>>
Date: Thursday, 1 June 2017 15:30
To: "eprints-tech at ecs.soton.ac.uk<mailto:eprints-tech at ecs.soton.ac.uk>" <eprints-tech at ecs.soton.ac.uk<mailto:eprints-tech at ecs.soton.ac.uk>>
Subject: [EP-tech] currrent_user => usertype

Hi all,


is there a way to find out the ?usertype? of the current session in a static-page (lile lang/de/testfile.xpage ) or in a phrases-file (lang/en/zz_webcfg.xml) ?



Tnks


Avi

*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/
*** EPrints developers Forum: http://forum.eprints.org/

*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/
*** EPrints developers Forum: http://forum.eprints.org/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20170601/37163694/attachment.html