Drupal8: Internal Server error when creating H5P node

Description

Acceptance Criteria

  1. Fix creating H5P node when logged in as Authenticated User.

  2. Answer https://h5p.org/node/201232

Background

Message from user:
When I'm trying to add h5p content as admin user everything works fine,
but, if I'm trying to create h5p content as standart authenticated user I get internal server error 500 avter saving node :/
The error inside php debugging is:
Fatal error: Call to a member function access() on null in /home/user/web/mysite.com/public_html/modules/h5p/src/H5PDrupal/H5PDrupal.php on line 1232

I'm already checked permissions for h5p module and everything looks fine. See Attachments.
Also, the content(node) is created, I see it as Admin and even can edit it, but as Authenticated user(or Anonymous user) can't - again Error 500 :S

See https://h5p.org/node/201232 for more info.

Environment

None

Acceptance Criteria

None

Assignee

Unassigned

Reporter

Thomas Marstrander

Labels

None

Funding

None

Code reviewer

None

Released

None

Time tracking

0m

Fix versions

None

Sprint

None

Priority

High
Configure