File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ module.exports = function (app) {
100100
101101 async function ssoManaged ( users , team ) {
102102 const list = { }
103- for ( u of users ) {
103+ for ( const u of users ) {
104104 list [ u . hashid ] = await app . sso . isUserMembershipManaged ( u , team )
105105 }
106106 return list
Original file line number Diff line number Diff line change 1717 <div class =" ff-blueprint-tile--info" >
1818 <label >{{ blueprint.name }}</label >
1919 <p v-if =" blueprint.description" :title =" blueprint.description" >
20- <ff-markdown-viewer :content =" blueprint.description" />
20+ <ff-markdown-viewer :content =" blueprint.description" />
2121 </p >
2222 </div >
2323 <div class =" ff-blueprint-tile--actions justify-between" >
Original file line number Diff line number Diff line change 1919 </template >
2020 <template v-if =" canEditUser " #context-menu =" {row } " >
2121 <ff-kebab-item
22- v-if =" (hasPermission('team:user:change-role') && !requiresBilling) || isAdminUser"
22+ v-if =" (( hasPermission('team:user:change-role') && !requiresBilling) || isAdminUser) && !ssoManaged({row}) "
2323 data-action =" member-change-role"
2424 label =" Change Role" @click =" changeRoleDialog(row)"
2525 />
2626 <ff-kebab-item
27- v-if =" hasPermission('team:user:remove') || isAdminUser"
27+ v-if =" ( hasPermission('team:user:remove') || isAdminUser) && !ssoManaged({row}) "
2828 data-action =" member-remove-from-team"
2929 label =" Remove From Team"
3030 kind =" danger"
3131 @click =" removeUserDialog(row)"
3232 />
33+ <ff-kebab-item
34+ v-if =" ssoManaged({row})"
35+ label =" User role is SSO Managed"
36+ />
3337 </template >
3438 </ff-data-table >
3539 </form >
@@ -236,6 +240,9 @@ export default {
236240 },
237241 onApplicationRoleClick ({ application, user }) {
238242 this .$refs .editApplicationPermissionsDialog .show (user, application)
243+ },
244+ ssoManaged (row ) {
245+ return row .row .ssoManaged
239246 }
240247 }
241248}
You can’t perform that action at this time.
0 commit comments