You can perform a check whether the user is logged in in appinfo/app.php
and if the user is not logged in add the script. - Please be aware that
this script will be added to any page that the guest accesses. (e.g. the
file share view)

App Framework:

> if (!$api->isLoggedIn()) {
>      $api->addScript('public/login');
> }


ownCloud API:

> if(!\OC_User::isLoggedIn()) {
>       \OCP\Util::addscript('appname', 'public/login');
> }
_______________________________________________
Owncloud mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/owncloud

Reply via email to