How to reproduce the issue:

  • Disable the 'administer content types' for a specific role (e.g. webmaster)
  • Login as a user with the webmaster role
  • Navigate to the content manager

The content type field is empty for all content because the 'administer content types' has been disabled for this role. This is not the expected behavior because I want to see which content type a piece of content has as a webmaster.

Comments

bceyssens created an issue. See original summary.

geertvd’s picture

Status: Active » Needs review
Issue tags: +Needs tests
StatusFileSize
new2.18 KB

Something like this fixes it.
I'm not sure if this if this ok to do though, maybe we should be using some other permission here? At least 'access content'?

In any case, this will need tests.

geertvd’s picture

StatusFileSize
new1.59 KB
new1.42 KB

I guess this is better.
That access method was an accidental copy.

geertvd’s picture

StatusFileSize
new985 bytes
new2.38 KB

And the test.

aspilicious’s picture

Status: Needs review » Reviewed & tested by the community

seems fine to me

The last submitted patch, 2: 2561331-2.patch, failed testing.

The last submitted patch, 4: 2561331-4-test.patch, failed testing.

geertvd’s picture

Version: 8.0.0-beta14 » 8.0.x-dev
alexpott’s picture

Status: Reviewed & tested by the community » Fixed
Issue tags: -Needs tests

Committed b19760f and pushed to 8.0.x. Thanks!

  • alexpott committed b19760f on 8.0.x
    Issue #2561331 by geertvd: When 'administer content types' permission is...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

Status: Closed (fixed) » Needs work

The last submitted patch, 4: 2561331-4-complete.patch, failed testing.

geertvd’s picture

Status: Needs work » Closed (fixed)