Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

How to enable coral-quickactions based on user logged in group?

Avatar

Avatar
Validate 1
Level 2
armanm32055672
Level 2

Likes

3 likes

Total Posts

27 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
Applaud 5
View profile

Avatar
Validate 1
Level 2
armanm32055672
Level 2

Likes

3 likes

Total Posts

27 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
Applaud 5
View profile
armanm32055672
Level 2

08-10-2018

I want author users of only some specific security groups to be able to edit and modify community sites. How can I make it so it sown ONLY when the logged in user on author is in a certain security group?

Example -

     Scenario: Two authors (author-A & author-B) and two community sites (site-A and site-B)

     Use Case: Security user author-A will only be able to edit and modify site-A and author-B be able to edit and modify site-B

image001.png

Result should be that user author-A only sees coral-quickactions on a community site card if they are part a the security group called 'site-A'

Is there any way I can restrict authoring based on community site instead it being that Community Administrator will see action items on all community site cards?

Replies

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,358 likes

Total Posts

3,228 posts

Correct Reply

918 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,358 likes

Total Posts

3,228 posts

Correct Reply

918 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
Arun_Patidar
MVP

08-10-2018

Hi,

This can be done by overlaying /libs/cq/gui/components/coral/admin/page/card/card.jsp

Since this is the common file, you need to put conditions based on landing page and user.

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,408 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,408 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

09-10-2018

Arun is correct - you need to override this file.

Avatar

Avatar
Validate 1
Level 2
armanm32055672
Level 2

Likes

3 likes

Total Posts

27 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
Applaud 5
View profile

Avatar
Validate 1
Level 2
armanm32055672
Level 2

Likes

3 likes

Total Posts

27 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
Applaud 5
View profile
armanm32055672
Level 2

09-10-2018

Thanks Arun, but I'm more trying to explicitly control it from /libs/social/console/components/hbs/sitecollection

I know I have to overlay it but I'm unsure how to inject this logic onto the page, do you have any insight on how I can translate the control logic on the action button based on the author's group membership?

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,358 likes

Total Posts

3,228 posts

Correct Reply

918 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,358 likes

Total Posts

3,228 posts

Correct Reply

918 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
Arun_Patidar
MVP

09-10-2018

Hi,

I think communities uses handlebars js, I never tried creating/updating community handlebar code.

I can only point you out to articles available on internet Social Component Framework