public static function canEdit()
    {
		// Get current user
		$user = eZUser::currentUser();
		$user_has_access = $user->hasAccessTo( 'userpaex', 'editpaex' );

		if ( $user_has_access['accessWord'] == "yes" )
            return true;

        return false;
    }
public static function canEdit()
    {
		// Get current user
		$user = eZUser::currentUser();
		$user_has_access = $user->hasAccessTo( 'userpaex', 'editpaex' );

		if ( $user_has_access['accessWord'] == "yes" )
            return true;

        return false;
    }
public static function canEdit ( ) { // Get current user $ user = eZUser :: currentUser ( ) ; $ user_has_access = $ user -> hasAccessTo ( 'userpaex' , 'editpaex' ) ; if ( $ user_has_access [ 'accessWord' ] == "yes" ) return true ; return false ; }
Check if current user has permissions to edit the paex data

@return true if the user has editpaex policy, false if not.
Check if current user has permissions to edit the paex data