Skip to content

Commit

Permalink
This was necessary to avoid errors when allowing users to log in with
Browse files Browse the repository at this point in the history
user_saml, but then blocking and not autocreating.
  • Loading branch information
deltafunction committed Oct 3, 2014
1 parent 9c34197 commit c97e9c6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions appinfo/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@

if(\OCP\User::getUser() && strlen($dl_dir) != 0){
$fs = \OCP\Files::getStorage('files');
if(!$fs){
return;
}
if(!$fs->is_dir($dl_dir)){
$fs->mkdir($dl_dir);
}
Expand All @@ -42,6 +45,9 @@

if(\OCP\User::getUser() && strlen($tmp_dir) != 0){
$fs = \OCP\Files::getStorage('files');
if(!$fs){
return;
}
if(!$fs->is_dir($tmp_dir)){
$fs->mkdir($tmp_dir);
}
Expand Down

0 comments on commit c97e9c6

Please sign in to comment.