Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Зуев Егор
/
wiki.dev
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Authored by
Dan Brown
2016-03-13 15:37:46 +0000
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Commit
491f73e0cdb236aa862e7373175e4b8b4c16ea38
491f73e0
1 parent
4656c12f
Fixed bug causing permission error on save and fixed non-gallery image save
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
app/Http/Controllers/ImageController.php
app/Http/Controllers/UserController.php
app/Http/Controllers/ImageController.php
View file @
491f73e
...
...
@@ -65,8 +65,7 @@ class ImageController extends Controller
{
$this
->
checkPermission
(
'image-create-all'
);
$this
->
validate
(
$request
,
[
'file'
=>
'image|mimes:jpeg,gif,png'
,
'uploaded_to'
=>
'integer|exists:pages,id'
'file'
=>
'image|mimes:jpeg,gif,png'
]);
$imageUpload
=
$request
->
file
(
'file'
);
...
...
app/Http/Controllers/UserController.php
View file @
491f73e
...
...
@@ -164,7 +164,9 @@ class UserController extends Controller
$user
->
save
();
session
()
->
flash
(
'success'
,
'User successfully updated'
);
return
redirect
(
'/settings/users'
);
$redirectUrl
=
userCan
(
'users-manage'
)
?
'/settings/users'
:
'/settings/users/'
.
$user
->
id
;
return
redirect
(
$redirectUrl
);
}
/**
...
...
Please
register
or
sign in
to post a comment