зеркало из https://github.com/nextcloud/guests.git
empty contacts list for guests
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Родитель
3b5dfbe2e1
Коммит
22eb525046
2
Makefile
2
Makefile
|
@ -9,7 +9,7 @@ cert_dir=$(HOME)/.nextcloud/certificates
|
|||
|
||||
jssources=$(wildcard js/*) $(wildcard js/*/*) $(wildcard css/*/*) $(wildcard css/*)
|
||||
|
||||
all: dist/index.js
|
||||
all: dist/index.js css/app.css
|
||||
|
||||
.PHONY: watch
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ Guests users can only access files shared to them and can't create any files out
|
|||
<screenshot>https://raw.githubusercontent.com/nextcloud/guests/master/screenshots/settings.png</screenshot>
|
||||
<screenshot>https://raw.githubusercontent.com/nextcloud/guests/master/screenshots/dropdown.png</screenshot>
|
||||
<dependencies>
|
||||
<nextcloud min-version="16" max-version="16" />
|
||||
<nextcloud min-version="16" max-version="17" />
|
||||
</dependencies>
|
||||
<commands>
|
||||
<command>OCA\Guests\Command\ListCommand</command>
|
||||
|
|
|
@ -19,6 +19,12 @@
|
|||
*
|
||||
*/
|
||||
|
||||
// routes are loaded after all apps are setup, thus we can abuse this file to do some delayed setup
|
||||
|
||||
use OCA\Guests\AppInfo\Application;
|
||||
|
||||
(new Application())->lateSetup();
|
||||
|
||||
return [
|
||||
'routes' => [
|
||||
[
|
||||
|
|
|
@ -49,6 +49,3 @@
|
|||
#app-guests.-animate-to {
|
||||
opacity: 1;
|
||||
}
|
||||
#header .header-right > div > .icon-contacts.menutoggle {
|
||||
display: none;
|
||||
}
|
||||
|
|
|
@ -74,7 +74,3 @@
|
|||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
#header .header-right > div > .icon-contacts.menutoggle {
|
||||
display: none;
|
||||
}
|
||||
|
|
|
@ -39,6 +39,10 @@ class Application extends App {
|
|||
$this->setupGuestRestrictions();
|
||||
}
|
||||
|
||||
public function lateSetup() {
|
||||
$this->getRestrictionManager()->lateSetupRestrictions();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return GuestManager
|
||||
*/
|
||||
|
|
|
@ -103,4 +103,10 @@ class RestrictionManager {
|
|||
});
|
||||
}
|
||||
}
|
||||
|
||||
public function lateSetupRestrictions() {
|
||||
if ($this->guestManager->isGuest($this->userSession->getUser())) {
|
||||
$this->server->getContactsManager()->clear();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче