-
-
Notifications
You must be signed in to change notification settings - Fork 817
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dev/core#2773 Add an ACL to demo data #22377
Conversation
(Standard links)
|
This creates a new user 'advisor' password 'advisor' with the email jenny@example.com. In conjunction with civicrm/civicrm-core#22377 this new login gets ACL limited access to contacts rather than 'view all' - this makes testing easier Change-Id: I7959149478312d7d7eaa0394c5991f03db97aa3a
This creates a new user 'advisor' password 'advisor' with the email jenny@example.com. In conjunction with civicrm/civicrm-core#22377 this new login gets ACL limited access to contacts rather than 'view all' - this makes testing easier Change-Id: I7959149478312d7d7eaa0394c5991f03db97aa3a
This creates an acl user (jenny@example.com) who can view members of the Volunteer group. A change will also be needed in buildkit to add her user account
e2ca45b
to
067907d
Compare
This will be really helpful for testing. |
This creates a new user 'advisor' password 'advisor' with the email jenny@example.com. In conjunction with civicrm/civicrm-core#22377 this new login gets ACL limited access to contacts rather than 'view all' - this makes testing easier Change-Id: I7959149478312d7d7eaa0394c5991f03db97aa3a
🎉 for having some ACLs for test/demo purposes.
This statement confuses me. I agree that sample data has a list of topics/issues - and that checkbox might be rethought - but I disagree that advertising/visibility during install is specifically problematic. Some advertising/visibility seems necessary if you consider that the audience of evaluators/learners lack the depth/experience to dig-up more obscure options. Anyway, rather than bat around |
@totten not strictly on sample data - but I have been wondering if we should have a separate 'dev install' in build kit - the things I'm thinking of are mostly settings (debug = on, environment = dev, escape by default = on) - which we would want to differ between our local environments and the evaluator demos - ie we want low tolerance on dev environments & low messiness on demos |
Thanks @totten I've added one more issue to the list in that wiki (case/grant types are weird) |
@colemanw Good one on case/grant types. @eileenmcnaughton I agree it's an important distinction on default settings for local-dev and for evaluator-demo. FWIW, I've been using /etc/civicrm.settings.d/*.php to create files like this: $GLOBALS['civicrm_setting']['domain']['debug_enabled'] = 1;
$GLOBALS['civicrm_setting']['domain']['backtrace'] = 1;
$GLOBALS['civicrm_setting']['domain']['mailing_backend'] = [
'outBound_option' => 0,
'smtpServer' => 'localhost',
'smtpPort' => 1025,
'smtpAuth' => FALSE,
]; The big upshot is that it applies to any/all local builds (eg (There are some other trade-offs. Edits to
FWIW, I do see+like how the terms dev/demo/staging/prod/etc ("environment") help to explain some common patterns. Maybe we could link-up "environment", "civibuild", and "common default settings" with something like https://lab.civicrm.org/dev/core/-/issues/3020 |
@totten default modifiers is currently a define in civicrm.settings.php - the main reason for this as opposed to a setting is that I feel there is a track record for using defines for transitional things (where eventually we expect it to be 'how it is' rather than an option) - having said that I'm not uber-wedded to any approach - I just think it will quickly stabilise if most of us are using sites with it defined |
FWIW, the current |
Overview
Add an ACL to demo data
Before
A lot of work to set up an ACL user to test something
After
An ACL is created for 'members in group Advisory Board can edit members in group Summer programme volunteers'. A contact 'Jenny Ling jenny@example.com' is added to the Advisory board group
Technical Details
In conjunction with a patch to buildkit we wind up with a user 'advisor' password 'advisor' who does not have permission to view all contacts
Comments