You can check if a user is logged in like this:
`
if ( zp_loggedin() ) {
do something...
}
`
You can also check if a user is logged in with, for example, upload rights like this:
`
if ( zp_loggedin(UPLOAD_RIGHTS) ) {
do something...
}
`
You'll find rights definitions on this page http://www.zenphoto.org/news/an-overview-of-zenphoto-users
They are constants (i.e. OVERVIEW_RIGHTS, USER_RIGHTS, etc)
Quote:I would also like to add links in the navigation to the admin panel etc. if the user has permission to use them.
Not sure what you mean exactly. Can you describe an example ?