ibexa

Caution: This documentation is for eZ Publish legacy, from version 3.x to 5.x.

user

Summary

Provides views for logging users in/out, password changing, etc.

Description

This module provides an interface to the permission system inside the eZ Publish kernel. It contains views that make it possible to log users in and out, register and activate new users, password changing, etc. A typical eZ Publish site that has login capabilities makes use the views that this module provides.

Fetch functions

NameSummary
anonymous_count Fetches the number of anonymous users.
current_user Fetches the user that is currently logged in.
has_access_to Checks if a user has access to a certain function of a module.
is_logged_in Checks if a specific user is logged in.
logged_in_count Fetches the number of users that are logged in.
logged_in_list Fetches the names of the users that are logged in.
logged_in_users Fetches the users that are logged in.
member_of Fetches the roles that are assigned to a user.
user_role Fetches the policies that are available for a user.

Views

NameSummary
activate Provides an interface for activating a user account.
forgotpassword Provides an interface for situations where a user forgets his/her password.
login Provides an interface for logging in a user.
logout Provides a mechanism that logs out a user.
password Provides an interface for changing the password for the current user.
preferences Provides an interface for managing the preferences (user/setting) for all users. Note: for security reasons this should only be granted to administrator users.
register Provides an interface for registering a new user.
setting Provides an interface for tweaking user account settings.
success Provides an interface that is called upon a successful user registration.

Balazs Halasy (23/02/2005 10:18 am)

Balazs Halasy (29/04/2005 8:12 am)


Comments

  • fetching groups of the current user

    For fetching the groups of the current user you can use:

    {def $user=fetch( 'user', 'current_user' )}
     
    {foreach $user.groups as $key => $group}
    {def $group=fetch( 'content', 'object', hash( 'object_id', $user.groups[$key] ) )}
      User is Member of: {$group.name} <br/>
    {/foreach}
    
  • Functions and Policies

    I don't understand why I can't create a role for activate and setting. Only 5 functions can be selected. Including selfedit. selfedit is a function without view? How to create a role which is able to active accounts without being able to edit them?