From 58d2ed6494aa533d03e380ae4798957ad2de5428 Mon Sep 17 00:00:00 2001 From: FoskyM Date: Mon, 2 Oct 2023 06:04:31 +0800 Subject: [PATCH] fix: scope --- js/dist/forum.js | Bin 7274 -> 7326 bytes js/dist/forum.js.map | Bin 24346 -> 24677 bytes .../forum/components/oauth/AuthorizePage.js | 6 ++++++ 3 files changed, 6 insertions(+) diff --git a/js/dist/forum.js b/js/dist/forum.js index a7988c6e1d86349de08e03ddaed666efbedb0d46..4c8eaf1927b88490d10604e458d1307a9d9dd51e 100644 GIT binary patch delta 65 zcmaE5G0$?tK0cGO#3F@M+akTpyp+@m|1^yfz2fBjf>aGnP3u%UT|@h#=+s!-600J; V;+)LnRE<;}LrtB{`}o%I0ss#_7MuV8 delta 12 UcmbPd`O0F$KEBPL_}1_O04U!D;s5{u diff --git a/js/dist/forum.js.map b/js/dist/forum.js.map index d4916cf5bc7143332d795ca46bdbf467389fe3f3..c314cbb2fb74d137def3cca5fd099869976ea448 100644 GIT binary patch delta 1860 zcmah}OHUhD6xK*p5{Me}u)%gxFpv@uw-B3`2@i4S&cqmF95BRj+AIh-cnH{LY=gsw z?kZKPROzUjKE$?CHkH^`RVsDYY`U&gbyMXB^bho$b3G(vQ!hMo&+Gfncg~$}e=+`f zW&Cv3+TyIbrpU;>)$<=)10S63h@_NB#}c-bYfJQ>Ulwcl9#wQmOOcgoUtvH($}F1H zBOR4s!yYBtt{La(d{U$_hl^#s1adBt=Tflu?4eZp@|91erl7 zsVX{K1E!FvOua`7^K$4`=)v-8`hJoLEAC_*3clM$6~6R^)tE`-tX)NgrN~KTPnr~k z2efQW@gYC$*>X}A;wHBs%9d0!Y6jl;dW-|O(iSmlaHnnXbix#yQf>;zM8ApUP$bDL zJPGGQeU`jhOV!}jC&8Ei^ z*nH7K(RhL*)TH|^3Y>O^PEROIZhKL?rc6ZbOJUwly%kAP#iYlkj*bT!Giu?S?45dZ zo?FsR9x!6A!EDwMhOVbT80naggx!n7z{^TAE}8-xcGa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d0B46{SOyXLfsSdok6yI+1uzAh!k8k{oyl*GiU6-0s zoxo>H@lDTB7IzeCs-_-WVDU#bipCvGP?7x?QQ+B9pnJxP z!683P!*-DDEoB9Q+*!M<07eHcgj=-&7Mw z1!M7^_5^BS%UgQi+jOv~6Wg13or1IA`rMh9JMw;g_%WDT_J?^>OEXd49Ao%j!Hge{ z;3WS5-dj#uo6uX1T%3?3+CH_3D_`c4p&2Ql5X7E^Kzj5bj9E%;IAh4IaOa;uc4CFgG6}cjREuf2s?)}>EQHW8GEPPdGEF309ihTUN{^`dM)fKn!Fk_7{S-! ztw7h%wUhX1@8W&Kb!8oX55M(pH%~+)>$M|l{_=p}WV66O5(Go&fy7%z4rEHdEbK>a z&$PTvvH+h(Ze1I(E|m;?ABnFHdEmS!7H3JDEq>ak49~S1aT)UcX zahF_vLgDI}Qf=#Ag9`HAHIlJ;n3_51!vVS)m3-(9DqcySi@p1dC RF~G%f_fcbV`R)Cu);}i4&gB3A diff --git a/js/src/forum/components/oauth/AuthorizePage.js b/js/src/forum/components/oauth/AuthorizePage.js index a3ac9d9..6d31f91 100644 --- a/js/src/forum/components/oauth/AuthorizePage.js +++ b/js/src/forum/components/oauth/AuthorizePage.js @@ -69,6 +69,12 @@ export default class AuthorizePage extends IndexPage { let default_scopes = []; this.scopes.map(scope => { + let index = scopes_temp.indexOf(scope.scope()); + if (index > -1) { + scopes_temp[index] = scope; + } else { + scopes_temp.slice(index, 1); + } if (scope.is_default() === 1) { default_scopes.push(scope); }