Some formatting etc.
git-svn-id: https://svn.libreccm.org/ccm/trunk@2766 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
f7c4dbcd7c
commit
725f60d768
|
|
@ -93,7 +93,7 @@ class RepositoriesSuperTreeModel implements TreeModel, DMConstants {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Return the Root of this Application's repository
|
// Return the Root of this Application's repository
|
||||||
Repository repository = (Repository) Web.getContext().getApplication();
|
Repository repository = (Repository) Web.getWebContext().getApplication();
|
||||||
|
|
||||||
Folder root = repository.getRoot();
|
Folder root = repository.getRoot();
|
||||||
|
|
||||||
|
|
@ -142,7 +142,7 @@ class RepositoriesSuperTreeModel implements TreeModel, DMConstants {
|
||||||
|
|
||||||
// Get Root folder.
|
// Get Root folder.
|
||||||
Repository currentRepository =
|
Repository currentRepository =
|
||||||
(Repository) Web.getContext().getApplication();
|
(Repository) Web.getWebContext().getApplication();
|
||||||
|
|
||||||
Folder root = currentRepository.getRoot();
|
Folder root = currentRepository.getRoot();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -102,7 +102,6 @@ public class SimpleSurveyUtil {
|
||||||
// user);
|
// user);
|
||||||
|
|
||||||
// TODO: Replacement code not tested yet (both alternatives)!
|
// TODO: Replacement code not tested yet (both alternatives)!
|
||||||
// Application app = Web.getContext().getApplication();
|
|
||||||
Application app = (Application)Kernel.getContext().getResource();
|
Application app = (Application)Kernel.getContext().getResource();
|
||||||
PermissionDescriptor admin = new PermissionDescriptor
|
PermissionDescriptor admin = new PermissionDescriptor
|
||||||
(PrivilegeDescriptor.ADMIN,
|
(PrivilegeDescriptor.ADMIN,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue