Skip to content
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

(Wrong)[WIP] Refactoring for Exercise Submissions #18

Closed
wants to merge 605 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
605 commits
Select commit Hold shift + click to select a range
11924fc
Add trait to reduce duplicated code in To/Group transformations
Apr 8, 2019
1bc431d
Add trait for future implementations
Apr 8, 2019
a0214f6
Remove usages of ArrayOfSameType
Apr 8, 2019
a9d9f07
Adapt examples because KindlyTo was removed
Apr 8, 2019
1d1c748
Fix parameter replace ContsraintException on throwing
Apr 8, 2019
890ef8f
Fix CodingStyle
Apr 8, 2019
3dae790
Remove catching \Error in trait
Apr 8, 2019
4f95858
Fix SplitString Unittest
Apr 15, 2019
d38b1ca
Upgrade unit tests for PHPUnit 8
Apr 15, 2019
1faf059
Fix data unit tests for PHPUnit 8
Apr 16, 2019
cb96543
Renamed Range and StrictRange to OpenedInterval and ClosedInterval
Apr 16, 2019
6f4ab67
Remove unused ilException comments
Apr 16, 2019
daaeef3
Throw exception directly in "DeriveTransformFromApplyTo" + use \Excep…
Apr 16, 2019
21b972b
Fix Unittest of Constraint Violation for PHPUnit8
Apr 24, 2019
3b0d6b9
Fix newest UI components tests to match with changed namespace of ref…
May 6, 2019
b300a2a
Update composer autoloader
May 6, 2019
bccf822
OnScreenChat: Switched to PNG for browser notification, because SVG c…
mjansenDatabay May 6, 2019
1d4ba31
Merge pull request #1707 from legionth/ilias-refinery
mjansenDatabay May 6, 2019
3a9b759
[Fix 25368] Fix copy ilobjects
xus May 6, 2019
1ada674
Adapt behavior of NewMethodTransformation. NewMethodTransformations n…
May 6, 2019
7edd5aa
Fix restrict method does not longer exists. Use applyTo instead of re…
May 6, 2019
fc8e6f9
ILIAS CI Dashboard: exit code on pull requests
gvollbach May 6, 2019
2f3f830
Merge pull request #1821 from legionth/fix-restrict
klees May 6, 2019
592a015
Update src/Refinery/To/Transformation/NewMethodTransformation.php
klees May 6, 2019
498c5d4
Add type hinting + using an InvalidArgumentException instead of Const…
May 6, 2019
f0ee808
Add dependency of Data\Factory to To\Group and all invoking classes
May 6, 2019
5c13c05
Merge pull request #1819 from xus/fix_copy_objects
smeyer-ilias May 6, 2019
d959e2e
fixed wrong type hinting: ilGlobalTemplateInterface instead of ilGlob…
bheyser May 6, 2019
42dad4a
fixed wrong type hinting: ilGlobalTemplateInterface instead of ilGlob…
bheyser May 6, 2019
1c4d675
fixed wrong type hinting: ilGlobalTemplateInterface instead of ilGlob…
bheyser May 6, 2019
1a0debe
fixed wrong type hinting: ilGlobalTemplateInterface instead of ilGlob…
bheyser May 6, 2019
1b071bb
merge open html view for porfolio assignments
xus May 6, 2019
7b6e642
remove todo
xus May 6, 2019
87bfb32
db update exc web_dir_access_time
xus May 6, 2019
f53783b
Merge pull request #1820 from legionth/fix-refinery-unit-tests
mjansenDatabay May 6, 2019
d5c0768
[FIX] css media
chfsx May 6, 2019
32dd18d
BrowserNotifications: Fixed form handling
mjansenDatabay May 7, 2019
71d7a1b
BrowserNotifications: Fixed form handling
mjansenDatabay May 7, 2019
ca02460
BrowserNotifications: Fixed form handling
mjansenDatabay May 7, 2019
08df4dd
BrowserNotifications: Fixed form handling
mjansenDatabay May 7, 2019
0d1a7ea
BrowserNotifications: Fixed form handling
mjansenDatabay May 7, 2019
6e0f8bc
fix #0025377 , lso-activation table
nhaagen May 7, 2019
52af67d
Signal action for Card title
tfamula May 7, 2019
9dedc6c
improved word counter labels and introduced counted words in solution…
bheyser May 7, 2019
3aeb383
Merge branch '60essayWordCounter' into trunk
bheyser May 7, 2019
1c41cc7
Merge branch 'trunk' of https://github.com/ILIAS-eLearning/ILIAS into…
bheyser May 7, 2019
d83c105
0025369: Aufruf von 1 Feld in einer Tabelle verlangsamt Browser
May 7, 2019
d9efc98
Mail: Fixed #25089
mjansenDatabay May 7, 2019
cfa35a6
fixed type hinting for global page template
bheyser May 7, 2019
abb6fe3
Merge branch 'trunk' of https://github.com/ILIAS-eLearning/ILIAS into…
bheyser May 7, 2019
d0d6ad0
Merge pull request #1817 from studer-raimann/fix/25040/trunk/fix/dicto
klees May 7, 2019
6e8424c
Create new refinery group \'integer\' and move every integer related …
May 7, 2019
2142ab0
Update composer autoloader class maps
May 7, 2019
750cad1
Merge pull request #1793 from nhaagen/UI_Modals
Amstutz May 7, 2019
aed9eb7
fixed mantis 25381: do not use tpl block HeadContent (<head> part) du…
bheyser May 7, 2019
94c84bd
Merge pull request #1826 from bheyser/mantis25381
mjansenDatabay May 7, 2019
1f014a9
merge
nhaagen May 7, 2019
7336147
add docstrings
nhaagen May 7, 2019
e9a248c
TinyMCE/Forum: Fixed #25381
mjansenDatabay May 7, 2019
ec2801d
TinyMCE/Forum: Fixed #25381
mjansenDatabay May 7, 2019
37eb15f
TinyMCE/Forum: Fixed #25381
mjansenDatabay May 7, 2019
d6f7960
Merge pull request #1823 from leifos-gmbh/6_0_ks_card_title_with_sign…
Amstutz May 7, 2019
c999c6b
merge dependencies into tests
nhaagen May 7, 2019
b1c154a
TinyMCE/Forum: Fixed #25381
mjansenDatabay May 7, 2019
b8263c0
Merge remote-tracking branch 'origin/trunk' into trunk
mjansenDatabay May 7, 2019
4c72242
Merge pull request #1737 from nhaagen/UI_Menu
Amstutz May 7, 2019
016eb0e
BrowserNotifications: Change notification behaviour if tabs are hidde…
mjansenDatabay May 7, 2019
dc02577
fixed #25373: Pagination in user management view broken
alex40724 May 7, 2019
d651365
Bugfix check access for drafts
May 8, 2019
529131f
BrowserNotifications: Translations
mjansenDatabay May 8, 2019
ac2d59b
BrowserNotifications: Respected setting
mjansenDatabay May 8, 2019
017e923
Fix typo in variable name
May 8, 2019
fccf7c7
Add docblock description for new factory group methods
May 8, 2019
d81939c
Merge pull request #1825 from legionth/integer-group
mjansenDatabay May 8, 2019
aa8f1ec
Fix Unittests
May 8, 2019
e172c43
Fix usage of isGreaterThan constraint
May 8, 2019
82892f5
ILIAS CI Dashboard: exit code on pull requests 2
gvollbach May 8, 2019
b44d020
Merge pull request #1827 from legionth/fix-unittests
mjansenDatabay May 8, 2019
3130b16
ILIAS CI Dashboard: exit code on pull requests 3
gvollbach May 8, 2019
17c3a12
Merge branch 'trunk' of https://github.com/ILIAS-eLearning/ILIAS into…
gvollbach May 8, 2019
7171320
ILIAS CI Dashboard: exit code on pull requests 4
gvollbach May 8, 2019
94abdc6
ILIAS CI Dashboard: exit code on pull requests, added log
gvollbach May 8, 2019
23e5335
ILIAS CI Dashboard: refactoring
gvollbach May 8, 2019
7771478
Add new string group + move constraints of validation sub library to …
May 8, 2019
c8e1beb
Fixed 0025163: missing .dtd File - getClientInfoXML
smeyer-ilias May 8, 2019
c1c1bf5
BrowserNotifications: translations
mjansenDatabay May 8, 2019
9b7dcfd
Adapt consumer code to move string group constraints
May 8, 2019
fa2d5de
OnScreenChat: Web Notifications
mjansenDatabay May 8, 2019
5e0262b
Setup: Fixed syntax error
mjansenDatabay May 8, 2019
c1a8e39
OnScreenChat: Fixed wrong Transformation factory namespace
mjansenDatabay May 8, 2019
0f49e02
fixed role assignments
smeyer-ilias May 8, 2019
19323df
Fixed scope
smeyer-ilias May 8, 2019
f478086
added some checks for sub entities and parent entities
bheyser May 8, 2019
df4e125
OnScreenChat: Used higher resolution PNG for Web Notifications
mjansenDatabay May 8, 2019
01ea2dd
Merge pull request #1830 from legionth/string-group
klees May 9, 2019
4f5e39b
add explorer-navigation to sub-panel, move relations into card
nhaagen May 9, 2019
1c1e696
added parameter checks
bheyser May 9, 2019
813c07d
Merge pull request #1822 from nhaagen/0025377
klees May 9, 2019
5f61f21
Merge pull request #1832 from nhaagen/UI_Nav
Amstutz May 9, 2019
b9018eb
fixed mantis 0025391: Komme auf test54.ilias.de nicht mehr in das Fra…
bheyser May 9, 2019
cd93ff4
File System GUI: Fixed rendering of checkbox for '..' entries
mjansenDatabay Apr 16, 2019
7f73c5f
fixed Mantis issue 25392 (PHP 7.2)
alex40724 May 9, 2019
a745670
0021694: Import Appointments from the Agenda-view
smeyer-ilias May 9, 2019
d4f0c6d
force all columns to right
alex40724 May 9, 2019
39a26ad
deactivate abadonded pd blocks
alex40724 May 9, 2019
8d5b6a6
missing PHP-Docs
xus May 10, 2019
5ae9406
less line wrap
xus May 10, 2019
9a98645
Fully Qualified Namespaces in Factory
xus May 10, 2019
a5de79e
fixed bug 24603: External link behind mediaobject to short
alex40724 May 10, 2019
92cc0de
padding using less var
xus May 10, 2019
f690be0
No type hint on viewcontrol
xus May 10, 2019
853687a
Merge pull request #1674 from xus/file_exist
alex40724 May 10, 2019
b11f06d
css flex without shorthand
xus May 10, 2019
57417e9
Merge pull request #1522 from leifos-gmbh/ui_panel_secondary
xus May 10, 2019
79d3a07
Fixed 0014176: "Generate List" page: Streamlining
smeyer-ilias May 13, 2019
3aa4783
Password Policies: Forced password change after login when applying p…
mjansenDatabay Apr 26, 2019
d5261be
Password Policies: Forced password change after login when applying p…
mjansenDatabay Apr 26, 2019
5feff6b
Password Policies: Forced password change after login when applying p…
mjansenDatabay Apr 26, 2019
94fc103
Password Policies: Forced password change after login when applying p…
mjansenDatabay Apr 29, 2019
3644af5
Password Policies: Forced password change after login when applying p…
mjansenDatabay Apr 29, 2019
4dbfe08
Password Policies: Changed translations
mjansenDatabay May 10, 2019
55b0add
[FIX] 0025376: Control Structure Reload Broken
chfsx May 9, 2019
4fc9e53
Didactic Templates: Fixed returning 'void' explicitly (PHP 7.2)
mjansenDatabay Apr 17, 2019
4c6e3cf
0025413: No more access to data collection after update
May 14, 2019
ed1fb62
fixed bug #25403
alex40724 May 14, 2019
3857178
fixed bug #25402
alex40724 May 14, 2019
867f935
0024339: Streamlining "Join request"-tables
smeyer-ilias May 14, 2019
d6f999b
0023445: Byline misleading: Deactivating Calendar Block deactivates w…
smeyer-ilias May 14, 2019
586ba82
removed dead web folder icon code
alex40724 May 14, 2019
cca278c
Merge branch 'trunk' of https://github.com/ILIAS-eLearning/ILIAS into…
alex40724 May 15, 2019
d27267e
fixed style json
alex40724 May 15, 2019
b62f93e
get rid of detail levels
alex40724 May 15, 2019
e7ae40c
simplified addBlockCommand signature
alex40724 May 15, 2019
5e83a9f
get rid of header block commands
alex40724 May 15, 2019
95442a4
get rid of footer links; moved all commands to addBlockCommand
alex40724 May 15, 2019
774abb5
introduce presentation type
alex40724 May 15, 2019
cd8736d
remove set/get block image
alex40724 May 15, 2019
e08c4a9
Fixed 0024339: Streamlining "Join request"-tables
smeyer-ilias May 15, 2019
12ab544
remove/out-comment footer info
alex40724 May 15, 2019
6143f5e
remove set/get colspan
alex40724 May 15, 2019
ff891e3
remove block sorting
alex40724 May 15, 2019
b061c77
Merge branch 'trunk' of https://github.com/ILIAS-eLearning/ILIAS into…
smeyer-ilias May 15, 2019
42184ff
Fixed 0021570: Redesign Toobar of Detailed Appointments - Usability I…
smeyer-ilias May 15, 2019
8daee33
move calendar block to secondary panel (some open issues)
alex40724 May 15, 2019
610433c
move news block to secondary panel (some open issues)
alex40724 May 15, 2019
1c0968b
improve presentation of lists in secondary panels
alex40724 May 15, 2019
9e5be25
using more variables
alex40724 May 15, 2019
4af7b17
fixed width
alex40724 May 16, 2019
77018e3
(fix-25353): dump to log for level DEBUG only
May 2, 2019
a8b5551
moved task block to sec panel
alex40724 May 16, 2019
c3bd52a
Merge pull request #1840 from leifos-gmbh/lists_in_secondary_panel
Amstutz May 17, 2019
9fa7df5
removed deprecated calls
alex40724 May 17, 2019
61a34e9
removed deprecated calls
alex40724 May 17, 2019
45affee
removed deprecated calls
alex40724 May 17, 2019
08f76db
removed conflict markers
alex40724 May 17, 2019
fb79dc0
Fixed 0023920: "Breadcrumb" in course-/or/group-calendar
smeyer-ilias May 17, 2019
17d04ca
Merge branch 'trunk' of https://github.com/ILIAS-eLearning/ILIAS into…
smeyer-ilias May 17, 2019
649b961
Fixed 0023916: Calendar Selection - breadcrumb-links and functionalities
smeyer-ilias May 17, 2019
64529e0
Certificate: Fixed #25442
mjansenDatabay May 17, 2019
3b50a28
move wiki/object md/search blocks to secondary panel
alex40724 May 17, 2019
f6e5e2e
move poll block to sec panel
alex40724 May 17, 2019
e67e0d2
move external feed block to sec panel
alex40724 May 19, 2019
6d152fb
fixRandomTestExportPages
Jan 31, 2019
edc4500
TinyMCE: Fixed #24439
mjansenDatabay May 20, 2019
9bee10d
Merge remote-tracking branch 'origin/trunk' into trunk
mjansenDatabay May 20, 2019
7230e3c
ILIAS CI-Dashboard: exit code on failure
gvollbach May 20, 2019
ebd7dc6
Merged latest trunk changes
mjansenDatabay May 20, 2019
c66df0a
Autoloader class map
mjansenDatabay May 20, 2019
8933154
Merge pull request #1786 from mjansenDatabay/feature-abandon-chatviewer
mjansenDatabay May 20, 2019
a77419f
Merged latest trunk changes
mjansenDatabay May 20, 2019
04499af
UI: fixed rendering test of item group
klees May 20, 2019
e1d3405
Mail: Fixed unit tests
mjansenDatabay May 20, 2019
3db78b5
UI: fixed rendering test of item group
klees May 20, 2019
8e845a5
Mail: Fixed unit tests
mjansenDatabay May 20, 2019
033ac27
Merge pull request #1787 from mjansenDatabay/feature-abandon-system-m…
mjansenDatabay May 20, 2019
028d4f5
Merged latest trunk changes
mjansenDatabay May 20, 2019
80fb9ff
Merge pull request #1794 from mjansenDatabay/feature-forum-drafts-tas…
mjansenDatabay May 20, 2019
47899e9
0025409: Inconsistency of subject length (256 vs 65 characters)
May 20, 2019
f0c4d0a
0025432: User is not anonymous after editing an entry (mail system)
May 20, 2019
b215095
moved calendar selection to sec panel
alex40724 May 20, 2019
a9a1919
Merge branch 'trunk' of https://github.com/ILIAS-eLearning/ILIAS into…
alex40724 May 20, 2019
efed3e4
Certificate: Fixed #25447
mjansenDatabay May 20, 2019
56e4be3
Merge remote-tracking branch 'origin/trunk' into trunk
mjansenDatabay May 20, 2019
9c5b2a8
Forum: Fixed #25448
mjansenDatabay May 20, 2019
71830dd
fixed wrong ilGobalTemplate type hinting due to PLR
bheyser May 20, 2019
15d5c8d
0023725: Navigationschaos beim Continous Testing Mode
bheyser May 20, 2019
6c78243
0023725: Navigationschaos beim Continous Testing Mode PART 2
bheyser May 20, 2019
6c7afb5
move classification block to sec panel
alex40724 May 20, 2019
4beeee5
show pagination only, if pagination possible
alex40724 May 20, 2019
a2a243e
repaired temporal depency when removing questions from a test completely
bheyser May 20, 2019
9275db2
Merge branch 'trunk' of https://github.com/ILIAS-eLearning/ILIAS into…
bheyser May 20, 2019
c061f63
move mail block to secondard panel
alex40724 May 20, 2019
1976ff6
Fixed 0022329: Session not displayed if partial permission
smeyer-ilias May 21, 2019
6c80de9
switch blog to standard template, deactivate banner and title url (ne…
alex40724 May 21, 2019
1d10b0b
switch blog to standard template, deactivate banner and title url (ne…
alex40724 May 21, 2019
8c4db1c
Revert "switch blog to standard template, deactivate banner and title…
alex40724 May 21, 2019
d92d1ff
0023910: "iCal-URL"-link, in modal of the new presentation of the iCA…
smeyer-ilias May 21, 2019
75b4195
switch portfolio to global template for now (banner and presentation/…
alex40724 May 21, 2019
b525ddd
Fixed 0023896: Calendar-entry of exercise =>Link to assingment - shou…
smeyer-ilias May 21, 2019
f06dd4a
Fix replacement of old replacement behavior
May 21, 2019
330cf0d
Default behaviour
May 21, 2019
49a7575
Fix usage of defined
May 21, 2019
6ebb839
Merge pull request #1843 from leifos-gmbh/6_0_pd_revision_mail_block_…
mjansenDatabay May 21, 2019
6518d14
Merge pull request #1845 from ILIAS-eLearning/fix-certificate-replace…
mjansenDatabay May 21, 2019
ae2222c
Show title and allow the actions for "booked up" objects
xus May 21, 2019
58d767c
[Fix 25456]No assignations if schedule ended.
xus May 21, 2019
dd6bc84
Fixed 0023919: Calendar Selection is not visible in public, private, …
smeyer-ilias May 21, 2019
58e06f2
ilGlobalTemplateInterface Hinting Fixes
bheyser May 21, 2019
cdbab61
Merge branch 'trunk' of https://github.com/ILIAS-eLearning/ILIAS into…
bheyser May 21, 2019
d4c5c22
DBUPDATE: fixed wrong (legacy) pool parent fi to test parent fi for d…
bheyser May 21, 2019
15186e4
Fixed 0024318: Session in group does not create calendar event
smeyer-ilias May 21, 2019
1f818e0
0022415: Calendar on PD, date not saved
smeyer-ilias May 21, 2019
ccf5f53
remove composer-vendor-directory
klees May 10, 2019
98e64d7
Updated README for composer.
klees May 10, 2019
dff312b
move blog blocks to sec. panels
xus May 21, 2019
2f804ac
Merge pull request #1833 from klees/trunk_remove_vendor
mjansenDatabay May 21, 2019
d22b898
0023917: Calendar Selection: Privat, Public Calendar, Persönliche Buc…
smeyer-ilias May 21, 2019
bb59d4c
dcl: refactored access class
May 21, 2019
95f2133
Kontext-sensitive Slates
chfsx May 21, 2019
300c781
moved Tools-Provider for Staff
chfsx May 21, 2019
d8d22de
POC
chfsx May 21, 2019
ad06144
[POC] GlobalScreen Tools
chfsx May 21, 2019
2f55448
missing ProviderFactory in tests
chfsx May 21, 2019
b4770d7
Merge branch 'trunk' into feature/6-0/plr-integration-tools
chfsx May 21, 2019
11117e1
last adjustments to the GS
chfsx May 21, 2019
37e307e
Merge branch 'feature/6-0/plr-integration-tools' into trunk
chfsx May 21, 2019
a81c17b
separation of some GS providers
chfsx May 21, 2019
953c578
implemented registration of different provider types
chfsx May 21, 2019
fc9c3c0
libs: use composers --dev option for dev-environments
klees May 22, 2019
7238e4a
0025337: Usability Datacollection: Order of Filter not in line with e…
May 22, 2019
91ef04d
DBupdate: performance changes to existing steps (not changing anythin…
bheyser May 22, 2019
0321cbc
Merge branch 'trunk' of https://github.com/ILIAS-eLearning/ILIAS into…
bheyser May 22, 2019
08609e7
fixed bug 24083: [ILIAS 5.4] Missing translation Exercise > Blog
alex40724 May 22, 2019
a00daca
fixed 24282: Course : Zuweisung von Kompetenzen nicht möglich.
alex40724 May 22, 2019
7d07f96
[FIX] 0025464: Trunk broken class 'ilSearchGSProvider' not found
chfsx May 22, 2019
8b69e3c
Merge pull request #1684 from xus/calendar_month_get_periods
smeyer-ilias May 22, 2019
27a8320
Merge pull request #1330 from bheyser/60nestable2
bheyser May 22, 2019
3e1e4a4
Merge branch 'trunk' of https://github.com/ILIAS-eLearning/ILIAS into…
bheyser May 22, 2019
27eeb06
finally removed nestable(1) from bower.json and reset intro date and …
bheyser May 22, 2019
11703ea
Merge pull request #1223 from lieblb/fix-test-submit-lock
bheyser May 22, 2019
f921253
Fixed back_to_pd labels
smeyer-ilias May 22, 2019
038bcc0
Merge pull request #1408 from lieblb/fix-objectives-array
smeyer-ilias May 22, 2019
dd21585
moved lock operation to within assQuestion so all access also from ct…
bheyser May 22, 2019
48486da
Merge branch 'trunk' of https://github.com/ILIAS-eLearning/ILIAS into…
bheyser May 22, 2019
0d7904e
Fix merge conflicts
xus May 22, 2019
b10f4ae
Revert "Fix merge conflicts"
xus May 22, 2019
352850f
25469: Folders not visible in editing tree
alex40724 May 23, 2019
c8778f0
remove composer files
xus May 23, 2019
01dc64a
Merge pull request #1702 from xus/fix_event_titles_and_zipfolders
smeyer-ilias May 23, 2019
75a26bb
[Exc refactoring] move sql to repo + first test
xus May 24, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
/Customizing/clients
/setup/sql/ilDBTemplate
virtual-data
/libs/composer/vendor

# /dicto
/dicto/results/*
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ install:
- cd ./libs/composer && composer install && cd ../..
env:
global:
- secure: "DQK6Kn+XksLsf+8VwH8MCGDdqUgX1UDMRUayw8gcCNhVIU97cTdRjZKzMLkW1vhSgiMuDDMKost9vVkHAbfDOw6yuVS368NC4PNpU1zqHHHoP4zlHc+mfQzN23w/8oYkbL0wi3BtRDYCokeE9SJECXDVuShBmiMsb6voqH/272C6bmTdVaUYrwuyGpyDt55IX7zFMXXIwMdiN7Z2YBLQVvQu9VwFrDFQCudn8pZ2zcv94RNXImWHqMuhPtGn6+TrrboxAIgC7OT5CGMlcxuQUaqxPeOX/tcwezSGJ/nLJSMEmx3hRU9TniWYHouFOoZHWKbxdLVX4dSJYKxN3wFu6CzD3aIZMqKT/lSIV3PMceq8aHv2w+Op3Lw/lyWm8lkM+6C8qOxsqsj1S5+5CPGAKMSs9gg9L9of21k6xEzUb2FSUaPnEy93GolrFCbcLxtz8ymlZs25/oYzMImqvIdlTcLmvzZ3YIoxjDY/9rrjWfmcx9YGIFZo2Cm6s2nvzkKQPAF7I93JG/2CrVFqzLI2Z95+dRQW3rLqnCCZcNTQ+7Pr/OnQeCccOCF2+enwaK2ZwXfnQA8Qri4ThYyb3y1SJirPF/RGSuxCxxjUkX2yo8v8HN6deuy/nWQOMhV+bKrpY2ITHT3Hy68Q1Xn755uHLZTbNltrAUX+knzI4/of20Y="
- secure: C6xIKZPxv6CwEK5YOOX8lwM+Q1nFEF6+k9zZnnyckaA+lIgqvVOiUdhT7JV5GAM3S2Tabb67BA3VN/bJ0hykhIiRsS1UO67MJIxD8qI0atoflN7SUGiDne7nAFZYj8yhDstmj38NR27TpUcGJh/khQ+4Iu0jgJKpDqMOiCExRX8YY+3CDtXr1f2AenLvXqulnlQqpD5fnEoOFw9kMtmLET2okswotguTu6rxWcUMuumA1u0YCy9MfgRqnijz4PiV1evX/QJeWtTZLkRVVz3n21XIlHBv8Qj32Nus/yLoclbmMPvJpzqrNrehE9IYgNP97nhXLjZqy9+a+zdN1bvNTP+NAGbbT8KzjBaWUKZfZ5f+G9CBzh7CL/1xz366l2b+b2oxiOexaY2JwL0CdpSnsBVsC/SizJF7uFbGKuYDl/IZwp1Ece37dBzbTHYrfUwwQZb45tvU5UDRiiLT5HJSw/ZEifJ6usxR94k6D2d/ZZ9wYQb1nbNzkmfaKgA3EZ4TQyHA5lFzc8ANdf7lZq4Qlq0sznMmrvMfCjsTmB2Wd0z80W/m4azFdEsK5hBNX/hJ7f57TnPKr+zTpZ/7gx5Hx5fQ6RpEF+sxM0Lwh0hCJxkXC8r4EwmKiCHPAILrF4dGxCo05OZKQxSrsHjoIjkZWUqxUlnLFTPDIwjYRmco7EY=
46 changes: 36 additions & 10 deletions Modules/Bibliographic/classes/class.ilObjBibliographicAccess.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ public static function _getCommands() {
"lang_var" => "show",
"default" => true,
),
array( "permission" => "write", "cmd" => "view", "lang_var" => "edit_content" ),
array( "permission" => "write", "cmd" => "edit", "lang_var" => "settings" ),
array("permission" => "write", "cmd" => "view", "lang_var" => "edit_content"),
array("permission" => "write", "cmd" => "edit", "lang_var" => "settings"),
);

return $commands;
Expand Down Expand Up @@ -66,11 +66,11 @@ public static function _checkGoto($a_target) {
* checks wether a user may invoke a command or not
* (this method is called by ilAccessHandler::checkAccess)
*
* @param string $a_cmd command (not permission!)
* @param string $a_permission permission
* @param int $a_ref_id reference id
* @param int $a_obj_id object id
* @param int|string $a_user_id user id (if not provided, current user is taken)
* @param string $a_cmd command (not permission!)
* @param string $a_permission permission
* @param int $a_ref_id reference id
* @param int $a_obj_id object id
* @param int|string $a_user_id user id (if not provided, current user is taken)
*
* @return boolean true, if everything is ok
*/
Expand All @@ -83,10 +83,17 @@ public function _checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_use
if ($a_user_id == "") {
$a_user_id = $ilUser->getId();
}

if (isset($_GET[ilObjBibliographicGUI::P_ENTRY_ID])) {
if (!self::checkEntryIdMatch($a_obj_id, $_GET[ilObjBibliographicGUI::P_ENTRY_ID])) {
return false;
}
}

switch ($a_cmd) {
case "view":
if (!self::_lookupOnline($a_obj_id)
&& !$rbacsystem->checkAccessOfUser($a_user_id, 'write', $a_ref_id)
&& !$rbacsystem->checkAccessOfUser($a_user_id, 'write', $a_ref_id)
) {
$ilAccess->addInfoItem(IL_NO_OBJECT_ACCESS, $lng->txt("offline"));

Expand All @@ -106,7 +113,7 @@ public function _checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_use
case "read":
case "visible":
if (!self::_lookupOnline($a_obj_id)
&& (!$rbacsystem->checkAccessOfUser($a_user_id, 'write', $a_ref_id))
&& (!$rbacsystem->checkAccessOfUser($a_user_id, 'write', $a_ref_id))
) {
$ilAccess->addInfoItem(IL_NO_OBJECT_ACCESS, $lng->txt("offline"));

Expand All @@ -119,10 +126,29 @@ public function _checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_use
}


/**
* @param $ref_id
* @param $obj_id
*
* @return bool
*/
private static function checkEntryIdMatch($obj_id, $entry_id) {
/**
* @var $ilBiblEntry ilBiblEntry
*/
$ilBiblEntry = ilBiblEntry::find($entry_id);
if (is_null($ilBiblEntry)) {
return false;
}

return ($ilBiblEntry->getDataId() == $obj_id);
}


/**
* Check wether bibliographic is online or not
*
* @param int $a_id bibl id
* @param int $a_id bibl id
*/
public static function _lookupOnline($a_id) {
global $DIC;
Expand Down
137 changes: 90 additions & 47 deletions Modules/Bibliographic/classes/class.ilObjBibliographicGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ public function getStandardCmd() {
/**
* getType
*
* @return String
* @deprecated REFACTOR use type factory via Facade
*
* @return String
*/
public function getType() {
return "bibl";
Expand All @@ -119,6 +119,12 @@ public function executeCommand() {
$ilNavigationHistory->addItem($this->object->getRefId(), $link, "bibl");
$this->addHeaderAction();
}

// general Access Check, especially for single entries not matching the object
if ($this->object instanceof ilObjBibliographic && !$DIC->access()->checkAccess('visible', "", $this->object->getRefId())) {
$this->handleNonAccess();
}

$next_class = $this->dic()->ctrl()->getNextClass($this);
$this->cmd = $this->dic()->ctrl()->getCmd();
switch ($next_class) {
Expand Down Expand Up @@ -179,6 +185,7 @@ public function executeCommand() {
}
break;
}

return true;
}

Expand Down Expand Up @@ -240,16 +247,20 @@ public static function _goto($a_target) {
// Detail-View
if ($id[1]) {
$DIC->ctrl()
->setParameterByClass(ilObjBibliographicGUI::class, ilObjBibliographicGUI::P_ENTRY_ID, $id[1]);
$DIC->ctrl()->redirectByClass(array(
ilRepositoryGUI::class,
ilObjBibliographicGUI::class,
), self::CMD_SHOW_DETAILS);
->setParameterByClass(ilObjBibliographicGUI::class, ilObjBibliographicGUI::P_ENTRY_ID, $id[1]);
$DIC->ctrl()->redirectByClass(
array(
ilRepositoryGUI::class,
ilObjBibliographicGUI::class,
), self::CMD_SHOW_DETAILS
);
} else {
$DIC->ctrl()->redirectByClass(array(
ilRepositoryGUI::class,
ilObjBibliographicGUI::class,
), self::CMD_VIEW);
$DIC->ctrl()->redirectByClass(
array(
ilRepositoryGUI::class,
ilObjBibliographicGUI::class,
), self::CMD_VIEW
);
}
}

Expand All @@ -264,8 +275,8 @@ protected function initCreationForms($a_new_type) {

$forms = parent::initCreationForms($a_new_type);
// Add File-Upload
$in_file = new ilFileInputGUI($DIC->language()->txt("bibliography file"), "bibliographic_file");
$in_file->setSuffixes(array( "ris", "bib", "bibtex" ));
$in_file = new ilFileInputGUI($DIC->language()->txt("bibliography_file"), "bibliographic_file");
$in_file->setSuffixes(array("ris", "bib", "bibtex"));
$in_file->setRequired(true);
$forms[self::CFORM_NEW]->addItem($in_file);
$this->ctrl->saveParameterByClass('ilobjrootfoldergui', 'new_type');
Expand Down Expand Up @@ -319,39 +330,54 @@ public function setTabs() {
$ilHelp->setScreenIdComponent('bibl');
// info screen
if ($DIC->access()->checkAccess('read', "", $this->object->getRefId())) {
$DIC->tabs()->addTab(self::TAB_CONTENT, $DIC->language()
->txt(self::TAB_CONTENT), $this->ctrl->getLinkTarget($this, self::CMD_SHOW_CONTENT));
$DIC->tabs()->addTab(
self::TAB_CONTENT, $DIC->language()
->txt(self::TAB_CONTENT), $this->ctrl->getLinkTarget($this, self::CMD_SHOW_CONTENT)
);
}
// info screen
if ($DIC->access()->checkAccess('visible', "", $this->object->getRefId())
|| $DIC->access()->checkAccess('read', "", $this->object->getRefId())) {
$DIC->tabs()->addTab(self::TAB_ID_INFO, $DIC->language()
->txt("info_short"), $this->ctrl->getLinkTargetByClass("ilinfoscreengui", "showSummary"));
|| $DIC->access()->checkAccess('read', "", $this->object->getRefId())
) {
$DIC->tabs()->addTab(
self::TAB_ID_INFO, $DIC->language()
->txt("info_short"), $this->ctrl->getLinkTargetByClass("ilinfoscreengui", "showSummary")
);
}
// settings
if ($DIC->access()->checkAccess('write', "", $this->object->getRefId())) {
$DIC->tabs()->addTab(self::SUBTAB_SETTINGS, $DIC->language()
->txt(self::SUBTAB_SETTINGS), $this->ctrl->getLinkTarget($this, self::CMD_EDIT_OBJECT));
$DIC->tabs()->addTab(
self::SUBTAB_SETTINGS, $DIC->language()
->txt(self::SUBTAB_SETTINGS), $this->ctrl->getLinkTarget($this, self::CMD_EDIT_OBJECT)
);
}
// export
if ($DIC->access()->checkAccess("write", "", $this->object->getRefId())) {
$DIC->tabs()->addTab(self::TAB_EXPORT, $DIC->language()
->txt(self::TAB_EXPORT), $this->ctrl->getLinkTargetByClass("ilexportgui", ""));
$DIC->tabs()->addTab(
self::TAB_EXPORT, $DIC->language()
->txt(self::TAB_EXPORT), $this->ctrl->getLinkTargetByClass("ilexportgui", "")
);
}
// edit permissions
if ($DIC->access()->checkAccess('edit_permission', "", $this->object->getRefId())) {
$DIC->tabs()->addTab(self::TAB_ID_PERMISSIONS, $DIC->language()
->txt("perm_settings"), $this->ctrl->getLinkTargetByClass("ilpermissiongui", "perm"));
$DIC->tabs()->addTab(
self::TAB_ID_PERMISSIONS, $DIC->language()
->txt("perm_settings"), $this->ctrl->getLinkTargetByClass("ilpermissiongui", "perm")
);
}
}


protected function initSubTabs() {
global $DIC;
$DIC->tabs()->addSubTab(self::SUBTAB_SETTINGS, $DIC->language()
->txt(self::SUBTAB_SETTINGS), $this->ctrl->getLinkTarget($this, self::CMD_EDIT_OBJECT));
$DIC->tabs()->addSubTab(self::SUB_TAB_FILTER, $DIC->language()
->txt("bibl_filter"), $this->ctrl->getLinkTargetByClass(ilBiblFieldFilterGUI::class, ilBiblFieldFilterGUI::CMD_STANDARD));
$DIC->tabs()->addSubTab(
self::SUBTAB_SETTINGS, $DIC->language()
->txt(self::SUBTAB_SETTINGS), $this->ctrl->getLinkTarget($this, self::CMD_EDIT_OBJECT)
);
$DIC->tabs()->addSubTab(
self::SUB_TAB_FILTER, $DIC->language()
->txt("bibl_filter"), $this->ctrl->getLinkTargetByClass(ilBiblFieldFilterGUI::class, ilBiblFieldFilterGUI::CMD_STANDARD)
);
}


Expand All @@ -360,12 +386,16 @@ public function initEditForm() {

$form = parent::initEditForm();
// Add File-Upload
$in_file = new ilFileStandardDropzoneInputGUI($DIC->language()
->txt("bibliographic_file"), "bibliographic_file");
$in_file->setSuffixes(array( "ris", "bib", "bibtex" ));
$in_file = new ilFileInputGUI(
$DIC->language()
->txt("bibliography_file"), "bibliographic_file"
);
$in_file->setSuffixes(array("ris", "bib", "bibtex"));
$in_file->setRequired(false);
$cb_override = new ilCheckboxInputGUI($DIC->language()
->txt("override_entries"), "override_entries");
$cb_override = new ilCheckboxInputGUI(
$DIC->language()
->txt("override_entries"), "override_entries"
);
$cb_override->addSubItem($in_file);

$form->addItem($cb_override);
Expand Down Expand Up @@ -432,11 +462,14 @@ public function showContent() {
$DIC->ui()->mainTemplate()->setPermanentLink("bibl", $this->object->getRefId());
} else {
$object_title = ilObject::_lookupTitle(ilObject::_lookupObjId($_GET["ref_id"]));
ilUtil::sendFailure(sprintf($DIC->language()
->txt("msg_no_perm_read_item"), $object_title), true);
ilUtil::sendFailure(
sprintf(
$DIC->language()
->txt("msg_no_perm_read_item"), $object_title
), true
);
//redirect to repository without any parameters
unset($_GET);
ilObjectGUI::_gotoRepositoryRoot();
$this->handleNonAccess();
}
}

Expand Down Expand Up @@ -474,8 +507,7 @@ public function sendFile() {
}
}
} else {
ilUtil::sendFailure($DIC['lng']->txt("no_permission"), true);
ilObjectGUI::_gotoRepositoryRoot();
$this->handleNonAccess();
}
}

Expand All @@ -486,13 +518,12 @@ public function showDetails() {
if ($DIC->access()->checkAccess('read', "", $this->object->getRefId())) {
$id = $DIC->http()->request()->getQueryParams()[self::P_ENTRY_ID];
$entry = $this->facade->entryFactory()
->findByIdAndTypeString($id, $this->object->getFileTypeAsString());
->findByIdAndTypeString($id, $this->object->getFileTypeAsString());
$bibGUI = new ilBiblEntryDetailPresentationGUI($entry, $this->facade);

$DIC->ui()->mainTemplate()->setContent($bibGUI->getHTML());
} else {
ilUtil::sendFailure($DIC->language()->txt("no_permission"), true);
ilObjectGUI::_gotoRepositoryRoot();
$this->handleNonAccess();
}
}

Expand All @@ -517,8 +548,7 @@ public function updateCustom(ilPropertyFormGUI $a_form) {
$this->addNews($this->object->getId(), 'updated');
}
} else {
ilUtil::sendFailure($DIC->language()->txt("no_permission"), true);
ilObjectGUI::_gotoRepositoryRoot();
$this->handleNonAccess();
}
}

Expand All @@ -528,12 +558,16 @@ public function toggleNotification() {

switch ($_GET["ntf"]) {
case 1:
ilNotification::setNotification(ilNotification::TYPE_DATA_COLLECTION, $DIC->user()
->getId(), $this->obj_id, false);
ilNotification::setNotification(
ilNotification::TYPE_DATA_COLLECTION, $DIC->user()
->getId(), $this->obj_id, false
);
break;
case 2:
ilNotification::setNotification(ilNotification::TYPE_DATA_COLLECTION, $DIC->user()
->getId(), $this->obj_id, true);
ilNotification::setNotification(
ilNotification::TYPE_DATA_COLLECTION, $DIC->user()
->getId(), $this->obj_id, true
);
break;
}
$DIC->ctrl()->redirect($this, "");
Expand Down Expand Up @@ -616,4 +650,13 @@ protected function afterImport(ilObject $a_new_object) {

parent::afterImport($a_new_object);
}


private function handleNonAccess() {
global $DIC;

unset($_GET);
ilUtil::sendFailure($DIC->language()->txt("no_permission"), true);
ilObjectGUI::_gotoRepositoryRoot();
}
}
7 changes: 6 additions & 1 deletion Modules/Blog/classes/class.ilBlogGlobalTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* @author Sascha Hofmann <[email protected]>
* @version $Id$
*/
class ilBlogGlobalTemplate
class ilBlogGlobalTemplate implements ilGlobalTemplateInterface
{


Expand Down Expand Up @@ -67,6 +67,11 @@ public function hideFooter()
{
$this->show_footer = false;
}


public function hasMessage() {
return isset($this->message);
}

/**
* Fill the footer area.
Expand Down
Loading