omit edit button on group table level

LaraReddy
Tera Guru

Hi All,

we want that only the Group owner can see and use the "edit" button on the related list "Group Members". Therefore we edited the List control and added following omit edit button script.

But some reasons it's not working, can anyone please help us here.

LaraReddy_0-1708606725158.png

 

Advance thanks.



30 REPLIES 30

Siva Sai Teja
Tera Expert

@LaraReddy, try creating Write ACL on sys_user_grmember group table, 

 

if(current.group.manager==gs.getUserID() || gs.hasRole('admin'){

}

Please Mark Correct if this solves your query and also mark  Helpful if you find my response worthy based on the impact.

Thanks

Hi Siva,

Thanks for the response.

Initially we tried the same approach but no luck with the write ACL, SO that's the reason we're trying omit edit script.

Thanks. 

@LaraReddy 

Any solution to this issue. I am also facing the same issue. 
Group Manager is not able to see EDIT button
please post here if you got any solution

Mark Manders
Mega Patron

Can you try this? It's the edit button on the sys_user_grmember table. That table has no 'parent'. It could also be you need a current in there, but it should help.

var answer = true;
var user = gs.getUserID();
if(group.parent.manager == user || gs.hasRole('admin')){
    answer = false;
}
return answer;

 


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark