-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6287 from 4teamwork/es-ui-903-ui-cookie-per-admin…
…-unit Restrict `geverui` cookie to admin unit
- Loading branch information
Showing
7 changed files
with
39 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
14 changes: 14 additions & 0 deletions
14
opengever/core/upgrades/20200226132815_add_js_cookie/jsregistry.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<object name="portal_javascripts" meta_type="JavaScripts Registry"> | ||
|
||
<javascript | ||
cacheable="True" | ||
compression="none" | ||
cookable="True" | ||
expression="" | ||
enabled="True" | ||
id="++resource++opengever.base/js_cookie.min.js" | ||
inline="False" | ||
insert-before="*" | ||
/> | ||
|
||
</object> |
9 changes: 9 additions & 0 deletions
9
opengever/core/upgrades/20200226132815_add_js_cookie/upgrade.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
from ftw.upgrade import UpgradeStep | ||
|
||
|
||
class AddJSCookie(UpgradeStep): | ||
"""Add js cookie. | ||
""" | ||
|
||
def __call__(self): | ||
self.install_upgrade_profile() |