Skip to content
Snippets Groups Projects
Commit dc2ac908 authored by Dorian Merz's avatar Dorian Merz
Browse files

refs #16782 [master] enable unconditioned RecordPermission

parent 9e95bc37
No related merge requests found
......@@ -164,8 +164,15 @@ trait SolrDefaultFincTrait
if (is_null($settings)) return false;
if ($settings instanceof Config) $settings = $settings->toArray();
foreach ((array) $settings as $value) {
list($methodName, $methodReturn) = explode(':', $value);
if (in_array($methodReturn, (array) $this->tryMethod($methodName))) {
$conf = explode(':', $value);
$methodName = array_shift($conf);
if (empty($conf))
{
return $methodName === 'enabled';
}
$methodReturn = array_shift($conf);
if (in_array($methodReturn, (array) $this->tryMethod($methodName)))
{
// as the current permission matches the current record,
// return it
return true;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment