Skip to content
Snippets Groups Projects

dev#189214: Add managed libraries select in users edit/add form

Viewing commit d5f90942
Show latest version
3 files
+ 31
11
Preferences
Compare changes
Files
3
+ 1
1
@@ -585,7 +585,7 @@ class Class_Users extends Storm_Model_Abstract {
public function canManageLibrary($library): bool
{
return in_array($library->getId(), $this->managedLibraries())
return ($library && in_array($library->getId(), $this->managedLibraries()))
? true
: false;
}