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

Error : Argument '$object' is invalid: Must be of type: ContentCreateStruct, ...

    XMLWordPrintable

Details

    • Castor Core S1, Castor Core S2

    Description

      When trying to log with a special user, I got the following error :

      Error : Argument '$object' is invalid: Must be of type: ContentCreateStruct, Content, VersionInfo or ContentInfo

      throw by : eZ\Publish\Core\Limitation\SubtreeLimitationType::evaluate() when the object passed is a SiteAccess...

      it is called by eZ\Publish\Core\Repository\Repository::canUser() where $module='user' and $function='module' when the user permission set has limitations

      Unfortunately I was not able to go much further, I am trying to start using the new stack, and had a hard time with this one

      Steps to reproduce the problem :

      • enable dev mode
      • in the ezDemo site, create a new user which only belongs to the editor group
      • try to log with this user (on frontend, non legacy)

      Attachments

        Activity

          People

            Unassigned Unassigned
            hakim hakim
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours
                3h