-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[4.0] Improve updater layout #34754
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
[4.0] Improve updater layout #34754
Changes from 89 commits
6d4e040
22eafde
19f8c4f
8688970
d678e6a
f5e0f91
848f97f
3ae5ef2
0f58382
260fd1b
cc074c9
dad900b
016231d
3a920c4
de6e404
e9fe3ee
1e96e64
61e4e82
22fded1
07be14e
9553037
5c6dacd
8da81d0
1a00c85
33b1904
529287f
7818799
7bf2c55
4eec5d3
005fdd1
34c2a10
1b87b04
ddee50a
53e42a9
6c66918
fd38cb6
a8d9b4a
b95b49d
b7a8249
cb29130
8dbeb9e
b54df04
7aeb41c
7de9b7b
28a14b8
46a97dd
14e6106
e285bd3
f07c0cc
6298661
66b6d00
f790f0d
fa1cc04
83931d3
56beb03
2076737
8f0275c
341f808
893c722
35cadac
bfb4c22
557c3dd
266a84e
59ab34e
0644b1c
d7a064a
03b5a3c
82b727b
2904a48
96f685d
3dc7d4f
07357ad
6415e04
d11fe7a
acfc39d
ae21f74
44acab1
a75f72c
adcc0fb
0ff509f
f0612fb
b1566f1
17f2e88
66f7534
a7d75c3
f999ec6
2926dc8
7ff93a0
9a17a98
259939f
8565055
a21cd66
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -45,6 +45,12 @@ public function display($cachable = false, $urlparams = false) | |
| // Get and render the view. | ||
| if ($view = $this->getView($vName, $vFormat)) | ||
| { | ||
| // Only super user can access file upload | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I thought only a super user could access the entire component? If so then is this additional check needed?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That's true for the backend (I'm not sure why the check is the way it is). So e.g. in a CLI context one could access without core.admin access. I just took over the permission check. |
||
| if ($view == 'upload' && !$this->app->getIdentity()->authorise('core.admin', 'com_joomlaupdate')) | ||
| { | ||
| $this->app->redirect(Route::_('index.php?option=com_joomlaupdate', true)); | ||
| } | ||
|
|
||
| // Get the model for the view. | ||
| /** @var \Joomla\Component\Joomlaupdate\Administrator\Model\UpdateModel $model */ | ||
| $model = $this->getModel('Update'); | ||
|
|
||
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.
This list is grouped by version as well as sorted alphabetically so these files need to be moved to the section beginning
// 4.0 from RC 3 to RC 4around line 5870There 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.
No, they need to go to section "// From 3.10 to 4.0" because sections are not named by when the code was added to script.php but by the versions which are compared with the tool.
If after the removal of the files the parent folder(s) are empty, the folders need to be removed, too. Folder list has same sections but is ordered in reverse alphabetical order.
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.
@wilsonge If I get pinged after this PR is merged but before RC 4 is built, I can run the tool to generate the lists and make a quick PR for updating script.php.