Closed (fixed)
Project:
Examples for Developers
Version:
8.x-1.x-dev
Component:
Other
Priority:
Normal
Category:
Plan
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
12 Sep 2015 at 15:51 UTC
Updated:
1 Jul 2016 at 04:04 UTC
Jump to comment: Most recent
Comments
Comment #2
mile23I think 'access content' is reasonable because these modules might end up on a public site.
'view code examples' isn't such a great idea, because then that's an extra step for anyone trying to learn. The examples are supposed to illustrate as few things as possible, so that the code can be clear and there's not a lot of blind alleys for new devs.
Also we'll eventually have a routing example which should illustrate a lot of the access control stuff.
Leaving @todos around is bad, especially for examples, because in our case it should really be documentation.
Anyone want to audit the existing modules and see what changes we need? Maybe make some issues about them?
Comment #3
metzlerd commentedCosmetics only.
Comment #4
mile23Updating this to a meta, with some requirements.
Comment #5
mile23Comment #6
metzlerd commentedIm not sure we'll need separate users, but I can check this out. A default install usually grants the anonymous user 'access content' privileges . That is certainly the default configuration for drupal core. I'm also not sure we need to be testing core functionality here, do we?
Comment #7
mile23Comment #8
mile23Comment #9
marvil07 commentedComment #10
sumthief commentedAll children issues are fixed. Should change this issue status?
Comment #11
skaughtplease revisit this issue. #2102677: Port tabledrag_example module to Drupal 8 comments #46 #47 #48
Comment #12
Torenware commented@SKAUGHT turns out to be right about this. I was working on a shiney new FunctionalTest, and discovered that if the node module is not enabled (this can happen in functional tests), the 'access content' permission will indeed fail for an anonymous user.
Since this issue is already marked fixed, I'm going to change it back. But I'm going to do a follow-up issue to fix the dependencies for examples.module.
Comment #13
Torenware commentedMarking this fixed again, since I've opened #2750555: Set modules which use 'access content' permission to have node as dependency to deal with @SKAUGHT's issue.