Getting someones role

Getting someones role

by John Rickard -
Number of replies: 2
Hi Everyone,

I am developing a theme and before you close this post, I know this isnt the theme forum...

On my themes footer I have some icons which I only want my staff to see... I know I can do this with a simple php IF statement - but I want to do it with the criteria being if a user has a role of non-editing teacher or higher in a catagory called STAFF INFORMATION


I have looked at the has_capability() which I can sort of get working, but I need it to get the capability from another course, not the course which the user is currently on...

Any ideas?

Thanks in advance (I hope)

JR
Average of ratings: -
In reply to John Rickard

Re: Getting someones role

by Mary Evans -
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers Picture of Testers
Are we talking Moodle 2.0 theming here? If I were you I'd put this post in Themes, plenty of help there.

Cheers

Mary
In reply to Mary Evans

Re: Getting someones role

by John Rickard -
Morning,

Sorry for the delay in replying

At the moment this theme is on a 1.9.7 install


Cheers