fix: lower role user cannot update higher role user (#1048)

* fix: user role update

* chore: update project member update service type
This commit is contained in:
Aaryan Khandelwal
2023-05-15 23:58:41 +05:30
committed by GitHub
parent abe021071c
commit 8c707cc544
12 changed files with 101 additions and 72 deletions

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 34 KiB

View File

@@ -8,8 +8,8 @@
<circle cx="103.434" cy="68.4443" r="4.51262" fill="#8CC1FF"/>
<circle cx="95.3115" cy="68.4444" r="4.96388" fill="white"/>
<circle cx="95.3117" cy="68.4443" r="4.51262" fill="#2C435F"/>
<rect x="59.238" y="60.1787" width="23.984" height="16.3369" rx="2.60695" fill="white" stroke="#DEE2E6" stroke-width="0.347594"/>
<circle cx="70.8824" cy="68.3478" r="4.86631" stroke="#FCBE1D" stroke-width="0.695187" stroke-linecap="round" stroke-dasharray="0 13.9 0 6.95"/>
<rect x="59.238" y="60.1787" width="23.984" height="16.3369" rx="2.60695" fill="white" stroke="#DEE2E6" strokeWidth="0.347594"/>
<circle cx="70.8824" cy="68.3478" r="4.86631" stroke="#FCBE1D" strokeWidth="0.695187" stroke-linecap="round" stroke-dasharray="0 13.9 0 6.95"/>
<path d="M73.2007 65.3557C72.5321 64.8376 71.7093 64.5583 70.8634 64.5625C70.0176 64.5668 69.1975 64.8542 68.5341 65.379L70.8823 68.3474L73.2007 65.3557Z" fill="#FCBE1D"/>
<path d="M68.5576 71.3396C69.2262 71.8578 70.049 72.137 70.8949 72.1328C71.7407 72.1285 72.5608 71.8411 73.2242 71.3163L70.876 68.3479L68.5576 71.3396Z" fill="#FCBE1D"/>
<rect x="36.8181" y="60.0049" width="16.6845" height="16.6845" rx="2.78075" fill="#FFEDD5"/>
@@ -27,8 +27,8 @@
<circle cx="81.434" cy="92.4443" r="4.51262" fill="#8CC1FF"/>
<circle cx="73.3115" cy="92.4444" r="4.96388" fill="white"/>
<circle cx="73.3117" cy="92.4443" r="4.51262" fill="#2C435F"/>
<rect x="37.238" y="84.1787" width="23.984" height="16.3369" rx="2.60695" fill="white" stroke="#DEE2E6" stroke-width="0.347594"/>
<circle cx="48.8824" cy="92.3478" r="4.86631" stroke="#FCBE1D" stroke-width="0.695187" stroke-linecap="round" stroke-dasharray="0 13.9 0 6.95"/>
<rect x="37.238" y="84.1787" width="23.984" height="16.3369" rx="2.60695" fill="white" stroke="#DEE2E6" strokeWidth="0.347594"/>
<circle cx="48.8824" cy="92.3478" r="4.86631" stroke="#FCBE1D" strokeWidth="0.695187" stroke-linecap="round" stroke-dasharray="0 13.9 0 6.95"/>
<path d="M51.2007 89.3557C50.5321 88.8376 49.7093 88.5583 48.8634 88.5625C48.0176 88.5668 47.1975 88.8542 46.5341 89.379L48.8823 92.3474L51.2007 89.3557Z" fill="#FCBE1D"/>
<path d="M46.5576 95.3396C47.2262 95.8578 48.049 96.137 48.8949 96.1328C49.7407 96.1285 50.5608 95.8411 51.2242 95.3163L48.876 92.3479L46.5576 95.3396Z" fill="#FCBE1D"/>
<rect x="14.8181" y="84.0049" width="16.6845" height="16.6845" rx="2.78075" fill="#FFEDD5"/>

Before

Width:  |  Height:  |  Size: 51 KiB

After

Width:  |  Height:  |  Size: 51 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 24 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 76 KiB

After

Width:  |  Height:  |  Size: 76 KiB

View File

@@ -11,7 +11,7 @@
<circle cx="174.957" cy="155.839" r="8.12271" fill="#8CC1FF"/>
<circle cx="160.336" cy="155.839" r="8.93498" fill="white"/>
<circle cx="160.336" cy="155.839" r="8.12271" fill="#2C435F"/>
<rect x="71.6288" y="140.96" width="69.4492" height="29.4064" rx="4.69251" fill="white" stroke="#DEE2E6" stroke-width="0.625668"/>
<rect x="71.6288" y="140.96" width="69.4492" height="29.4064" rx="4.69251" fill="white" stroke="#DEE2E6" strokeWidth="0.625668"/>
<circle cx="82.5987" cy="155.037" r="3.75401" fill="#F7AE59"/>
<path d="M92.0831 150.29V149.117H100.274V150.29H96.8396V160.038H95.5172V150.29H92.0831ZM104.284 160.208C103.544 160.208 102.895 160.032 102.337 159.68C101.783 159.328 101.349 158.836 101.036 158.203C100.727 157.57 100.572 156.831 100.572 155.985C100.572 155.132 100.727 154.387 101.036 153.751C101.349 153.114 101.783 152.62 102.337 152.268C102.895 151.916 103.544 151.74 104.284 151.74C105.023 151.74 105.67 151.916 106.225 152.268C106.783 152.62 107.216 153.114 107.526 153.751C107.839 154.387 107.995 155.132 107.995 155.985C107.995 156.831 107.839 157.57 107.526 158.203C107.216 158.836 106.783 159.328 106.225 159.68C105.67 160.032 105.023 160.208 104.284 160.208ZM104.284 159.078C104.845 159.078 105.307 158.934 105.67 158.646C106.033 158.358 106.301 157.979 106.475 157.51C106.649 157.041 106.737 156.532 106.737 155.985C106.737 155.438 106.649 154.927 106.475 154.455C106.301 153.982 106.033 153.6 105.67 153.308C105.307 153.017 104.845 152.871 104.284 152.871C103.722 152.871 103.26 153.017 102.897 153.308C102.535 153.6 102.266 153.982 102.092 154.455C101.918 154.927 101.831 155.438 101.831 155.985C101.831 156.532 101.918 157.041 102.092 157.51C102.266 157.979 102.535 158.358 102.897 158.646C103.26 158.934 103.722 159.078 104.284 159.078ZM117.232 160.208C116.55 160.208 115.947 160.036 115.424 159.691C114.902 159.343 114.493 158.852 114.198 158.219C113.903 157.583 113.755 156.831 113.755 155.964C113.755 155.103 113.903 154.357 114.198 153.724C114.493 153.091 114.904 152.602 115.43 152.258C115.956 151.913 116.564 151.74 117.253 151.74C117.787 151.74 118.208 151.829 118.517 152.007C118.83 152.181 119.068 152.38 119.232 152.604C119.399 152.825 119.529 153.006 119.621 153.148H119.728V149.117H120.986V160.038H119.77V158.779H119.621C119.529 158.928 119.397 159.117 119.226 159.344C119.056 159.568 118.812 159.769 118.496 159.947C118.179 160.121 117.758 160.208 117.232 160.208ZM117.403 159.078C117.907 159.078 118.334 158.946 118.682 158.683C119.031 158.417 119.296 158.049 119.477 157.579C119.658 157.107 119.749 156.561 119.749 155.942C119.749 155.331 119.66 154.796 119.482 154.337C119.305 153.875 119.042 153.516 118.693 153.26C118.345 153.001 117.915 152.871 117.403 152.871C116.869 152.871 116.425 153.008 116.07 153.281C115.718 153.552 115.453 153.92 115.275 154.385C115.101 154.847 115.014 155.366 115.014 155.942C115.014 156.525 115.103 157.055 115.28 157.531C115.462 158.004 115.728 158.381 116.08 158.662C116.436 158.939 116.877 159.078 117.403 159.078ZM126.793 160.208C126.054 160.208 125.405 160.032 124.847 159.68C124.292 159.328 123.858 158.836 123.546 158.203C123.236 157.57 123.082 156.831 123.082 155.985C123.082 155.132 123.236 154.387 123.546 153.751C123.858 153.114 124.292 152.62 124.847 152.268C125.405 151.916 126.054 151.74 126.793 151.74C127.532 151.74 128.179 151.916 128.734 152.268C129.292 152.62 129.726 153.114 130.035 153.751C130.348 154.387 130.504 155.132 130.504 155.985C130.504 156.831 130.348 157.57 130.035 158.203C129.726 158.836 129.292 159.328 128.734 159.68C128.179 160.032 127.532 160.208 126.793 160.208ZM126.793 159.078C127.355 159.078 127.817 158.934 128.179 158.646C128.542 158.358 128.81 157.979 128.985 157.51C129.159 157.041 129.246 156.532 129.246 155.985C129.246 155.438 129.159 154.927 128.985 154.455C128.81 153.982 128.542 153.6 128.179 153.308C127.817 153.017 127.355 152.871 126.793 152.871C126.231 152.871 125.769 153.017 125.407 153.308C125.044 153.6 124.776 153.982 124.601 154.455C124.427 154.927 124.34 155.438 124.34 155.985C124.34 156.532 124.427 157.041 124.601 157.51C124.776 157.979 125.044 158.358 125.407 158.646C125.769 158.934 126.231 159.078 126.793 159.078Z" fill="#495057"/>
<rect x="31.2729" y="140.647" width="30.0321" height="30.0321" rx="5.00535" fill="#FFEDD5"/>

Before

Width:  |  Height:  |  Size: 63 KiB

After

Width:  |  Height:  |  Size: 63 KiB