Skip to content

Commit 9f0d325

Browse files
committed
feat: updated project permissions
- also updated Permissions HTML CSS styles ref issue #4135
1 parent 16f045c commit 9f0d325

File tree

3 files changed

+37
-241
lines changed

3 files changed

+37
-241
lines changed

docs/permissions.html

Lines changed: 12 additions & 210 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@
8585
background-color: #b8daff;
8686
vertical-align: middle;
8787
}
88+
89+
.badge-crossed {
90+
opacity: 0.4;
91+
text-decoration: line-through;
92+
}
8893
</style>
8994
</head>
9095
<body>
@@ -96,11 +101,11 @@ <h1 class="display-4">Permissions</h1>
96101
<p>Legend:</p>
97102
<ul>
98103
<li><span class="badge badge-primary">allowed Project Role</span> - users with such a <strong>Project Role</strong> are allowed to perform the action</li>
99-
<li><span class="badge badge-warning">denied Project Role</span> - users with such a <strong>Project Role</strong> are denied to perform the action even they have some other allow roles</li>
104+
<li><span class="badge badge-primary badge-crossed">denied Project Role</span> - users with such a <strong>Project Role</strong> are denied to perform the action even they have some other allow roles</li>
100105
<li><span class="badge badge-success">allowed Topcoder Role</span> - users with such a <strong>Topcoder Role</strong> are allowed to perform the action</li>
101-
<li><span class="badge badge-danger">denied Topcoder Role</span> - users with such a <strong>Topcoder Role</strong> are denied to perform the action even they have some other allow roles</li>
106+
<li><span class="badge badge-success badge-crossed">denied Topcoder Role</span> - users with such a <strong>Topcoder Role</strong> are denied to perform the action even they have some other allow roles</li>
102107
<li><span class="badge badge-dark">allowed M2M Scope</span> - M2M tokens with such a <strong>scope</strong> are allowed to perform the action</li>
103-
<li><span class="badge badge-secondary">denied M2M Scope</span> - M2M tokens with such a <strong>scope</strong> are allowed to perform the action even they have some other allow scopes</li>
108+
<li><span class="badge badge-dark badge-crossed">denied M2M Scope</span> - M2M tokens with such a <strong>scope</strong> are allowed to perform the action even they have some other allow scopes</li>
104109
</ul>
105110
</div>
106111

@@ -175,7 +180,7 @@ <h2 class="anchor-container">
175180
<a href="#READ_PROJECT" name="READ_PROJECT" class="anchor"></a>Read Project
176181
</div>
177182
<div class="permission-variable"><small><code>READ_PROJECT</code></small></div>
178-
<div class="text-black-50 small-text"></div>
183+
<div class="text-black-50 small-text">Read project when user is a member.</div>
179184
</div>
180185
<div class="col-9 py-2">
181186
<div>
@@ -219,14 +224,6 @@ <h2 class="anchor-container">
219224
<span class="badge badge-success" title="Allowed Topcoder Role">Connect Admin</span>
220225
<span class="badge badge-success" title="Allowed Topcoder Role">administrator</span>
221226
<span class="badge badge-success" title="Allowed Topcoder Role">Connect Manager</span>
222-
<span class="badge badge-success" title="Allowed Topcoder Role">Connect Account Manager</span>
223-
<span class="badge badge-success" title="Allowed Topcoder Role">Connect Copilot Manager</span>
224-
<span class="badge badge-success" title="Allowed Topcoder Role">Business Development Representative</span>
225-
<span class="badge badge-success" title="Allowed Topcoder Role">Presales</span>
226-
<span class="badge badge-success" title="Allowed Topcoder Role">Account Executive</span>
227-
<span class="badge badge-success" title="Allowed Topcoder Role">Program Manager</span>
228-
<span class="badge badge-success" title="Allowed Topcoder Role">Solution Architect</span>
229-
<span class="badge badge-success" title="Allowed Topcoder Role">Project Manager</span>
230227
</div>
231228

232229
<div>
@@ -1260,84 +1257,6 @@ <h1 class="anchor-container">
12601257
</td>
12611258
<td class="table-primary" title="Default role">
12621259
1263-
</td>
1264-
<td >
1265-
1266-
</td>
1267-
<td >
1268-
1269-
</td>
1270-
<td >
1271-
1272-
</td>
1273-
<td >
1274-
1275-
</td>
1276-
<td >
1277-
1278-
</td>
1279-
<td >
1280-
1281-
</td>
1282-
<td >
1283-
1284-
</td>
1285-
<td >
1286-
1287-
</td>
1288-
<td >
1289-
1290-
</td>
1291-
</tr>
1292-
<tr>
1293-
<th>copilot</th>
1294-
<td >
1295-
1296-
</td>
1297-
<td >
1298-
1299-
</td>
1300-
<td >
1301-
1302-
</td>
1303-
<td >
1304-
1305-
</td>
1306-
<td >
1307-
1308-
</td>
1309-
<td >
1310-
1311-
</td>
1312-
<td class="table-primary" title="Default role">
1313-
1314-
</td>
1315-
<td >
1316-
1317-
</td>
1318-
<td >
1319-
1320-
</td>
1321-
<td >
1322-
1323-
</td>
1324-
<td >
1325-
1326-
</td>
1327-
<td >
1328-
1329-
</td>
1330-
</tr>
1331-
<tr>
1332-
<th>account_manager</th>
1333-
<td >
1334-
1335-
</td>
1336-
<td >
1337-
1338-
</td>
1339-
<td >
1340-
13411260
</td>
13421261
<td class="table-primary" title="Default role">
13431262
@@ -1351,92 +1270,14 @@ <h1 class="anchor-container">
13511270
<td >
13521271

13531272
</td>
1354-
<td >
1355-
1356-
</td>
1357-
<td >
1358-
1359-
</td>
1360-
<td >
1273+
<td class="table-primary" title="Default role">
13611274
13621275
</td>
1363-
<td >
1276+
<td class="table-primary" title="Default role">
13641277
1365-
</td>
1366-
<td >
1367-
1368-
</td>
1369-
</tr>
1370-
<tr>
1371-
<th>account_executive</th>
1372-
<td >
1373-
1374-
</td>
1375-
<td >
1376-
1377-
</td>
1378-
<td >
1379-
1380-
</td>
1381-
<td >
1382-
1383-
</td>
1384-
<td >
1385-
1386-
</td>
1387-
<td >
1388-
1389-
</td>
1390-
<td >
1391-
13921278
</td>
13931279
<td class="table-primary" title="Default role">
13941280
1395-
</td>
1396-
<td >
1397-
1398-
</td>
1399-
<td >
1400-
1401-
</td>
1402-
<td >
1403-
1404-
</td>
1405-
<td >
1406-
1407-
</td>
1408-
</tr>
1409-
<tr>
1410-
<th>project_manager</th>
1411-
<td >
1412-
1413-
</td>
1414-
<td >
1415-
1416-
</td>
1417-
<td >
1418-
1419-
</td>
1420-
<td >
1421-
1422-
</td>
1423-
<td >
1424-
1425-
</td>
1426-
<td >
1427-
1428-
</td>
1429-
<td >
1430-
1431-
</td>
1432-
<td >
1433-
1434-
</td>
1435-
<td >
1436-
1437-
</td>
1438-
<td >
1439-
14401281
</td>
14411282
<td class="table-primary" title="Default role">
14421283
@@ -1446,16 +1287,7 @@ <h1 class="anchor-container">
14461287
</td>
14471288
</tr>
14481289
<tr>
1449-
<th>solution_architect</th>
1450-
<td >
1451-
1452-
</td>
1453-
<td >
1454-
1455-
</td>
1456-
<td >
1457-
1458-
</td>
1290+
<th>copilot</th>
14591291
<td >
14601292

14611293
</td>
@@ -1483,36 +1315,6 @@ <h1 class="anchor-container">
14831315
<td >
14841316

14851317
</td>
1486-
</tr>
1487-
<tr>
1488-
<th>program_manager</th>
1489-
<td >
1490-
1491-
</td>
1492-
<td >
1493-
1494-
</td>
1495-
<td >
1496-
1497-
</td>
1498-
<td >
1499-
1500-
</td>
1501-
<td >
1502-
1503-
</td>
1504-
<td >
1505-
1506-
</td>
1507-
<td >
1508-
1509-
</td>
1510-
<td >
1511-
1512-
</td>
1513-
<td class="table-primary" title="Default role">
1514-
1515-
</td>
15161318
<td >
15171319

15181320
</td>

scripts/permissions-doc/template.hbs

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@
8585
background-color: #b8daff;
8686
vertical-align: middle;
8787
}
88+
89+
.badge-crossed {
90+
opacity: 0.4;
91+
text-decoration: line-through;
92+
}
8893
</style>
8994
</head>
9095
<body>
@@ -96,11 +101,11 @@
96101
<p>Legend:</p>
97102
<ul>
98103
<li><span class="badge badge-primary">allowed Project Role</span> - users with such a <strong>Project Role</strong> are allowed to perform the action</li>
99-
<li><span class="badge badge-warning">denied Project Role</span> - users with such a <strong>Project Role</strong> are denied to perform the action even they have some other allow roles</li>
104+
<li><span class="badge badge-primary badge-crossed">denied Project Role</span> - users with such a <strong>Project Role</strong> are denied to perform the action even they have some other allow roles</li>
100105
<li><span class="badge badge-success">allowed Topcoder Role</span> - users with such a <strong>Topcoder Role</strong> are allowed to perform the action</li>
101-
<li><span class="badge badge-danger">denied Topcoder Role</span> - users with such a <strong>Topcoder Role</strong> are denied to perform the action even they have some other allow roles</li>
106+
<li><span class="badge badge-success badge-crossed">denied Topcoder Role</span> - users with such a <strong>Topcoder Role</strong> are denied to perform the action even they have some other allow roles</li>
102107
<li><span class="badge badge-dark">allowed M2M Scope</span> - M2M tokens with such a <strong>scope</strong> are allowed to perform the action</li>
103-
<li><span class="badge badge-secondary">denied M2M Scope</span> - M2M tokens with such a <strong>scope</strong> are allowed to perform the action even they have some other allow scopes</li>
108+
<li><span class="badge badge-dark badge-crossed">denied M2M Scope</span> - M2M tokens with such a <strong>scope</strong> are allowed to perform the action even they have some other allow scopes</li>
104109
</ul>
105110
</div>
106111

@@ -131,7 +136,7 @@
131136
{{/each}}
132137
{{/if}}
133138
{{#each denyRule.projectRoles}}
134-
<span class="badge badge-warning" title="Denied Project Role">{{this}}</span>
139+
<span class="badge badge-primary badge-crossed" title="Denied Project Role">{{this}}</span>
135140
{{/each}}
136141
</div>
137142

@@ -144,7 +149,7 @@
144149
{{/each}}
145150
{{/if}}
146151
{{#each denyRule.topcoderRoles}}
147-
<span class="badge badge-danger" title="Denied Topcoder Role">{{this}}</span>
152+
<span class="badge badge-success badge-crossed" title="Denied Topcoder Role">{{this}}</span>
148153
{{/each}}
149154
</div>
150155

@@ -153,7 +158,7 @@
153158
<span class="badge badge-dark" title="Allowed Topcoder Role">{{this}}</span>
154159
{{/each}}
155160
{{#each denyRule.scopes}}
156-
<span class="badge badge-secondary" title="Denied Topcoder Role">{{this}}</span>
161+
<span class="badge badge-darky badge-crossed" title="Denied Topcoder Role">{{this}}</span>
157162
{{/each}}
158163
</div>
159164
</div>

0 commit comments

Comments
 (0)