cancel
Showing results for 
Search instead for 
Did you mean: 

Disabling 'Create Site' Button

borisstankov
Champ in-the-making
Champ in-the-making
Hello all,

Do anyone of you know, or did anyone tried to disable (hide) the "Create Site" Button for non Admin users (or show it only for specific group of ppl)?
I'm using Alfresco 5.0.c. I found some topic on 4.0, 4.2 and even older versions, but I tried them all and non of them worked as it should.

Regards!
23 REPLIES 23

jpotts
World-Class Innovator
World-Class Innovator
Just to confirm: When you run 5.0.d out-of-the-box, with no customizations at all, you can create sites with user group members and you won't see that exception. After you install the share site creators AMPs you see the error.

Is that what you're seeing?

marcosfgo25
Champ on-the-rise
Champ on-the-rise
I using alfresco community 5.0.d and i try to use share-site-creators-5.0.d but when I try "mvn install" inside folder share-site-creators-repo I have this error:

[INFO] Scanning for projects…
[INFO] ————————————————————————
[INFO] Building share-site-creators-repo AMP project
[INFO]    task-segment: [install]
[INFO] ————————————————————————
[INFO] [alfresco:set-version {execution: default-set-version}]
[INFO] Removed -SNAPSHOT suffix from version - 0.0.2
[INFO] Added timestamp to version - 0.0.2.1511091717
[INFO] [build-helper:add-test-resource {execution: add-env-test-properties}]
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /opt/share-site-creators-5.0.d/share-site-creators-repo/src/main/resources
[INFO] Copying 5 resources to ../share-site-creators-repo
[INFO] ————————————————————————
[ERROR] BUILD ERROR
[INFO] ————————————————————————
[INFO] Error building POM (may not be this project's POM).


Project ID: com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:jar:1.2

Reason: Cannot find parent: org.sonatype.ossSmiley Surprisedss-parent for project: com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:jar:1.2 for project com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:jar:1.2


[INFO] ————————————————————————
[INFO] For more information, run Maven with the -e switch
[INFO] ————————————————————————
[INFO] Total time: 4 seconds
[INFO] Finished at: Mon Nov 09 17:17:34 CVT 2015
[INFO] Final Memory: 57M/529M

I think that Jeff's addon is not compatible in the maven install. However, I've been able to create the amp files on an older version and been able to successfully use them in 5.0+

You might check github and see if he's updated anything.

jpotts
World-Class Innovator
World-Class Innovator
I'm not aware of any issues with mvn install. If you think you've found one and you can reproduce it reliably with the code currently in github, please file an issue at:

https://github.com/jpotts/share-site-creators

Jeff