Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-22988

More dev friendly info on UnauthorizedException

    XMLWordPrintable

    Details

      Description

      When an UnauthorizedException is thrown by content service, the only message is:
      User does not have access to 'read' 'content'
      since the call is done with:
      throw new UnauthorizedException( 'content', 'read' );

      the message could be improved, passing extra information when throwing the exception, making use of the extra parameters accepted by
      UnauthorizedException::__construct( $module, $function, array $properties = null, Exception $previous = null )

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              paulo.bras@ez.no Paulo Bras (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: