Skip to content

Commit

Permalink
if only_admin is selected it will start always a new session, because…
Browse files Browse the repository at this point in the history
… of the low session times
  • Loading branch information
TobiasFranek committed May 19, 2017
1 parent 2f4430b commit c66bf4f
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 2 deletions.
Empty file modified src/Command/CacheBuildCommand.php
100644 → 100755
Empty file.
Empty file modified src/Command/CacheClearCommand.php
100644 → 100755
Empty file.
Empty file modified src/Command/CreateRepositoryCommand.php
100644 → 100755
Empty file.
Empty file modified src/Resources/config/Students.webuntis.yml
100644 → 100755
Empty file.
4 changes: 2 additions & 2 deletions src/Webuntis.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ public function __construct(array $config) {


$cache = Repository::getCache();

if($cache->contains($config['username'])) {
$generalConfig = WebuntisFactory::getConfig();
if($cache->contains($config['username']) && (!isset($generalConfig['only_admin']) || $generalConfig['only_admin'] == false)) {
$data = $cache->fetch($config['username']);
$this->currentUserId = -1;
if(isset($data['userId'])){
Expand Down

0 comments on commit c66bf4f

Please sign in to comment.