Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
Even deeper insecure permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy-j committed Jan 19, 2016
1 parent 083bea0 commit 1e43c77
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions source/Albus/Bootloaders/InsecureAlbusBootloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,12 @@ public function boot(PermissionsInterface $permissions, AlbusConfig $config)
$permissions->addRole(static::ROLE);
}

//Following rule will raise log message to notify that insecure setting were used
$permissions->associate(
static::ROLE,
$config->securityNamespace() . '.*',
InsecureRule::class
);
$namespace = $config->securityNamespace();

//Controller specific permissions
$permissions->associate(
static::ROLE,
$config->securityNamespace() . '.*.*',
InsecureRule::class
);
//Following rule will raise log message to notify that insecure setting were used
$permissions->associate(static::ROLE, "{$namespace}.*", InsecureRule::class);
$permissions->associate(static::ROLE, "{$namespace}.*.*", InsecureRule::class);
$permissions->associate(static::ROLE, "{$namespace}.*.*.*", InsecureRule::class);
$permissions->associate(static::ROLE, "{$namespace}.*.*.*.*", InsecureRule::class);
}
}

0 comments on commit 1e43c77

Please sign in to comment.