-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Add a new admin section for Imprint and Privacy Policy settings #31552
Conversation
Codecov Report
@@ Coverage Diff @@
## master #31552 +/- ##
============================================
+ Coverage 62.87% 62.89% +0.02%
- Complexity 18410 18418 +8
============================================
Files 1151 1154 +3
Lines 69114 69157 +43
Branches 1260 1260
============================================
+ Hits 43456 43499 +43
Misses 25289 25289
Partials 369 369
Continue to review full report at Codecov.
|
b0c6064
to
b94f064
Compare
* @return array | ||
*/ | ||
public function setPrivacyPolicyUrl($privacy_policy) { | ||
$this->config->setSystemValue( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👎 never write to configuration.php from webui . Think about clusteted Setups.
Either Store in DB or don't offer a was to Set via ui/occ
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@DeepDiver1975 thanks for heads up
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also: no underscores in variable names
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, got it: don't do in your panel controller what other panels/controllers do :)
|
@VicDeo Could post a screenshot? |
@michaelstingl updated the PR description |
Documentation relevant ! |
Style of the input fields doesn't look so nice but then looking at other ones there doesn't seem to be a proper convention for how they should look like. @VicDeo Many such fields have a colon Thoughts @felixheidecke ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@VicDeo please add a colon to the label and I think we can merge this.
Then we carry on with other updates in separate PRs
@PVince81 added |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Colon all the things ! 👍
Stable10: #31666 |
@VicDeo … I need help getting Tried |
Trying to resolve the same task (passing links into templates) for emails in my local branch at the moment, will ping you after push |
@felixheidecke here you go af2a6ed |
@VicDeo, I just attempted to use it and encountered the following error: ./occ config:app:set core legal.imprint_url https://localhost:8060/impressum
Too many arguments, expected arguments "command" "app" "name".
config:app:set [--output [OUTPUT]] [--value VALUE] [--update-only] [--] <app> <name>
|
For set, it needs --value in the command. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description
PHP backend to add links to Imprint and Privacy Policy
Related Issue
https://github.com/owncloud/enterprise/issues/2537
Motivation and Context
Allows admin to specify a links to privacy policy or imprint
How Has This Been Tested?
php occ config:app:get core legal.imprint_url
php occ config:app:get core legal.privacy_policy_url
php occ config:app:set core legal.imprint_url new_value
php occ config:app:set core legal.privacy_policy_url new_value
Screenshots (if appropriate):
Types of changes
Checklist: