... |
... |
@@ -170,6 +170,8 @@ |
170 |
170 |
{{html clean="false"}} |
171 |
171 |
#set ($liveTableObj = $doc.getObject('AppWithinMinutes.LiveTableClass', true)) |
172 |
172 |
#set ($discard = $doc.use($liveTableObj)) |
|
173 |
+ #set ($discard = $xwiki.jsfx.use('js/scriptaculous/effects.js')) |
|
174 |
+ #set ($discard = $xwiki.jsfx.use('js/scriptaculous/dragdrop.js')) |
173 |
173 |
#set ($discard = $xwiki.ssx.use('AppWithinMinutes.LiveTableEditSheet')) |
174 |
174 |
#set ($discard = $xwiki.jsx.use('AppWithinMinutes.LiveTableEditSheet')) |
175 |
175 |
#if ("$!request.wizard" == 'true') |
... |
... |
@@ -193,9 +193,7 @@ |
193 |
193 |
## Grant space administration rights only if the space is new. Don't overwrite existing space preferences. |
194 |
194 |
#set ($spaceHomeRef = $services.model.resolveDocument('', 'default', $spaceRef)) |
195 |
195 |
#set ($spacePrefsRef = $services.model.resolveDocument('WebPreferences', 'explicit', $spaceRef)) |
196 |
|
- ## Verify that the current user has script right on the current space home. |
197 |
|
- #set ($hasScript = $services.security.authorization.hasAccess('script', $xcontext.userReference, $spaceHomeRef)) |
198 |
|
- #if ($hasScript && !$xwiki.exists($spaceHomeRef) && !$xwiki.exists($spacePrefsRef)) |
|
198 |
+ #if (!$xwiki.exists($spaceHomeRef) && !$xwiki.exists($spacePrefsRef)) |
199 |
199 |
#set ($spacePrefsDoc = $xwiki.getDocument($spacePrefsRef)) |
200 |
200 |
#set ($discard = $spacePrefsDoc.use($spacePrefsDoc.getObject('XWiki.XWikiGlobalRights', true))) |
201 |
201 |
#set ($discard = $spacePrefsDoc.set('allow', 1)) |
... |
... |
@@ -317,10 +317,6 @@ |
317 |
317 |
{{/velocity}} |
318 |
318 |
|
319 |
319 |
{{velocity}} |
320 |
|
-#if (!$services.security.authorization.hasAccess('script', $xcontext.userReference, $doc.documentReference)) |
321 |
|
- {{error}}{{translation key="platform.appwithinminutes.appHomePageNoScriptRight" /}}{{/error}} |
322 |
|
- |
323 |
|
-#end |
324 |
324 |
#if ("$!request.wizard" == 'true') |
325 |
325 |
{{include reference="AppWithinMinutes.WizardStep" /}} |
326 |
326 |
#end |