| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
| |
There was a mess of functions which mostly, but not quite, did the same
things. Get rid of a couple of them and fix call sites to use
alternative ones that also fit the job.
While at it, add phpdoc and comments to the remaining functions, trying
to clarify what they were designed for.
Lastly, the return type of functions that retrieve a location id has
been changed from false|int to ?int (nullable types are just nicer).
|
| |
|
|
|
|
| |
When deleting a location without recusively deleting its children too,
copy all the permissions assigned to the location in question to all its
child locations.
|
| | |
|
| |
|
|
|
|
|
| |
Add extra warning text when deleting a room where the user doesn't have
permission to add new rooms to the parent location.
Also show the number of child locations next to the checkbox for
deleting all child locations.
|
| | |
|
| |
|
|
| |
Mostly redundant checks, logic errors, dead code, etc.
|
| |
|
|
|
|
| |
Hide the button entirely if there are no movable machines in the
displayed list. Disable the button as long as the user selected at least
one unmovable machine.
|
| | |
|
| |
|
|
|
|
|
| |
Remoteaccess mode can now be forced to be disabled for individual
locations in locations module, either unconditionally, or whenever the
openingtimes schedule says the room is open. A reboot will be triggered
whenever the room opens/closes to force clients into the proper runmode.
|
| |
|
|
|
| |
Properly show inherited passthough groups in location list,
disable inherited passthrough groups in selection dialog.
|
| |
|
|
|
| |
Additional columns are now added through a hook,
moving specialized code where it belongs.
|
| |
|
|
|
|
|
| |
* Auto-convert to utf8mb4_unicode_520_ci
* Use foreach instead of while to loop over results
* Drop useless statement caching
* Keep emulated prepares, as we sometimes loop over nested queries
|
| |
|
|
|
|
|
|
|
|
| |
The opening times schedule is now inherited to child locations, so it's
easy to toggle WOL or shutdown for individual rooms in a building, where
you only have to set the opening times once for the entire building.
As of now, WOL and shutdown settings are *not* inherited to child
locations, as I'm not sure if you always want to inherit those by
default.
Closes #3710
|
| | |
|
| | |
|
| |
|
|
|
| |
- Overlaps < 5 min are ignored, < 15 triggers reboot
- Database: Make 1 line out of 2
|
| | |
|
| | |
|
| |
|
|
|
| |
- only load/safe without further functionality
- add backend to rebootcontrol
|
| |
|
|
|
| |
- move openingtimes from infoscreen db to locations db
- read-only openingtimes in infoscreen
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
Closes #3550
|
| |
|
|
|
|
|
|
|
| |
Locations where the user isn't allowed to do anything were supposed to
be hidden while at the same time making sure that any parent locations
would still be shown. That code was buggy and could display nonsensical
ordering of locations, and even sometimes hide locations where the user
was actually allowed to e.g. edit the assigned config module. Since the
location names aren't secret anyways, just get rid of this broken code.
|
| | |
|
| |
|