mirror of
https://github.com/owncloud/bookmarks.git
synced 2025-03-02 02:29:25 +01:00
ported checkLoggedIn and checkAdmin
This commit is contained in:
parent
303391fd58
commit
ff20ebcb3b
2
addBm.php
Normal file → Executable file
2
addBm.php
Normal file → Executable file
@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
|
|
||||||
// Check if we are a user
|
// Check if we are a user
|
||||||
OC_Util::checkLoggedIn();
|
OCP\User::checkLoggedIn();
|
||||||
OC_Util::checkAppEnabled('bookmarks');
|
OC_Util::checkAppEnabled('bookmarks');
|
||||||
|
|
||||||
require_once('bookmarksHelper.php');
|
require_once('bookmarksHelper.php');
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
|
|
||||||
// Check if we are a user
|
// Check if we are a user
|
||||||
OC_Util::checkLoggedIn();
|
OCP\User::checkLoggedIn();
|
||||||
OC_Util::checkAppEnabled('bookmarks');
|
OC_Util::checkAppEnabled('bookmarks');
|
||||||
|
|
||||||
OC_App::setActiveNavigationEntry( 'bookmarks_index' );
|
OC_App::setActiveNavigationEntry( 'bookmarks_index' );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user