From e23e28b3cc311c9820462b38c6a7958027540dd7 Mon Sep 17 00:00:00 2001 From: "John Molakvoæ (skjnldsv)" Date: Tue, 15 May 2018 18:22:19 +0200 Subject: Various fixes * Fixed subadmin group management * Fixed pass policy prop retrieving * Fixed fields subadmins were not supposed to see MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- settings/js/main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'settings/js/main.js') diff --git a/settings/js/main.js b/settings/js/main.js index b41d99a0c24..4d60bb7510e 100644 --- a/settings/js/main.js +++ b/settings/js/main.js @@ -3,7 +3,7 @@ * (c) 2014-2018 Evan You * Released under the MIT License. */ -var so=Object.freeze({}),ao=Object.prototype.toString,uo=h("slot,component",!0),co=h("key,ref,slot,slot-scope,is"),lo=Object.prototype.hasOwnProperty,fo=/-(\w)/g,po=g(function(t){return t.replace(fo,function(t,e){return e?e.toUpperCase():""})}),ho=g(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}),vo=/\B([A-Z])/g,mo=g(function(t){return t.replace(vo,"-$1").toLowerCase()}),go=Function.prototype.bind?b:y,yo=function(t,e,n){return!1},bo=function(t){return t},_o="data-server-rendered",wo=["component","directive","filter"],xo=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured"],Oo={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:yo,isReservedAttr:yo,isUnknownElement:yo,getTagNamespace:O,parsePlatformTagName:bo,mustUseProp:yo,_lifecycleHooks:xo},So=/[^\w.$]/,Co="__proto__"in{},ko="undefined"!=typeof window,Eo="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,Ao=Eo&&WXEnvironment.platform.toLowerCase(),$o=ko&&window.navigator.userAgent.toLowerCase(),Lo=$o&&/msie|trident/.test($o),To=$o&&$o.indexOf("msie 9.0")>0,Po=$o&&$o.indexOf("edge/")>0,jo=($o&&$o.indexOf("android"),$o&&/iphone|ipad|ipod|ios/.test($o)||"ios"===Ao),No=($o&&/chrome\/\d+/.test($o),{}.watch),Mo=!1;if(ko)try{var Io={};Object.defineProperty(Io,"passive",{get:function(){Mo=!0}}),window.addEventListener("test-passive",null,Io)}catch(t){}var Uo,Fo,Ro=function(){return void 0===Uo&&(Uo=!ko&&!Eo&&void 0!==t&&"server"===t.process.env.VUE_ENV),Uo},Do=ko&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,Bo="undefined"!=typeof Symbol&&L(Symbol)&&"undefined"!=typeof Reflect&&L(Reflect.ownKeys);Fo="undefined"!=typeof Set&&L(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var Vo=O,Go=0,qo=function(){this.id=Go++,this.subs=[]};qo.prototype.addSub=function(t){this.subs.push(t)},qo.prototype.removeSub=function(t){v(this.subs,t)},qo.prototype.depend=function(){qo.target&&qo.target.addDep(this)},qo.prototype.notify=function(){for(var t=this.subs.slice(),e=0,n=t.length;e1?_(n):n;for(var r=_(arguments,1),i=0,o=n.length;iparseInt(this.max)&&qe(u,c[0],c,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}},Ts={KeepAlive:Ls};!function(t){var e={};e.get=function(){return Oo},Object.defineProperty(t,"config",e),t.util={warn:Vo,extend:w,mergeOptions:Q,defineReactive:R},t.set=D,t.delete=B,t.nextTick=ut,t.options=Object.create(null),wo.forEach(function(e){t.options[e+"s"]=Object.create(null)}),t.options._base=t,w(t.options.components,Ts),Me(t),Ie(t),Ue(t),De(t)}(Ne),Object.defineProperty(Ne.prototype,"$isServer",{get:Ro}),Object.defineProperty(Ne.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Ne,"FunctionalRenderContext",{value:ge}),Ne.version="2.5.16";var Ps,js,Ns,Ms,Is,Us,Fs,Rs,Ds,Bs=h("style,class"),Vs=h("input,textarea,option,select,progress"),Gs=function(t,e,n){return"value"===n&&Vs(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},qs=h("contenteditable,draggable,spellcheck"),Hs=h("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),zs="http://www.w3.org/1999/xlink",Ws=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Ks=function(t){return Ws(t)?t.slice(6,t.length):""},Ys=function(t){return null==t||!1===t},Qs={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Js=h("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),Xs=h("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Zs=function(t){return"pre"===t},ta=function(t){return Js(t)||Xs(t)},ea=Object.create(null),na=h("text,number,password,search,email,tel,url"),ra=Object.freeze({createElement:en,createElementNS:nn,createTextNode:rn,createComment:on,insertBefore:sn,removeChild:an,appendChild:un,parentNode:cn,nextSibling:ln,tagName:fn,setTextContent:pn,setStyleScope:dn}),ia={create:function(t,e){hn(e)},update:function(t,e){t.data.ref!==e.data.ref&&(hn(t,!0),hn(e))},destroy:function(t){hn(t,!0)}},oa=new zo("",{},[]),sa=["create","activate","update","remove","destroy"],aa={create:yn,update:yn,destroy:function(t){yn(t,oa)}},ua=Object.create(null),ca=[ia,aa],la={create:On,update:On},fa={create:kn,update:kn},pa=/[\w).+\-_$\]]/,da="__r",ha="__c",va={create:er,update:er},ma={create:nr,update:nr},ga=g(function(t){var e={},n=/;(?![^(]*\))/g,r=/:(.+)/;return t.split(n).forEach(function(t){if(t){var n=t.split(r);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}),ya=/^--/,ba=/\s*!important$/,_a=function(t,e,n){if(ya.test(e))t.style.setProperty(e,n);else if(ba.test(n))t.style.setProperty(e,n.replace(ba,""),"important");else{var r=xa(e);if(Array.isArray(n))for(var i=0,o=n.length;ih?(f=r(n[g+1])?null:n[g+1].elm,y(t,f,n,d,g,o)):d>g&&_(t,e,p,h)}function O(t,e,n,r){for(var o=n;o\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,ru="[a-zA-Z_][\\w\\-\\.]*",iu="((?:"+ru+"\\:)?"+ru+")",ou=new RegExp("^<"+iu),su=/^\s*(\/?)>/,au=new RegExp("^<\\/"+iu+"[^>]*>"),uu=/^]+>/i,cu=/^",""":'"',"&":"&"," ":"\n"," ":"\t"},ku=/&(?:lt|gt|quot|amp);/g,Eu=/&(?:lt|gt|quot|amp|#10|#9);/g,Au=h("pre,textarea",!0),$u=function(t,e){return t&&Au(t)&&"\n"===e[0]},Lu=/^@|^v-on:/,Tu=/^v-|^@|^:/,Pu=/([^]*?)\s+(?:in|of)\s+([^]*)/,ju=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Nu=/^\(|\)$/g,Mu=/:(.*)$/,Iu=/^:|^v-bind:/,Uu=/\.[^.]+/g,Fu=g(Xa.decode),Ru=/^xmlns:NS\d+/,Du=/^NS\d+:/,Bu={preTransformNode:gi},Vu=[Qa,Ja,Bu],Gu={model:zn,text:bi,html:_i},qu={expectHTML:!0,modules:Vu,directives:Gu,isPreTag:Zs,isUnaryTag:Za,mustUseProp:Gs,canBeLeftOpenTag:tu,isReservedTag:ta,getTagNamespace:Xe,staticKeys:function(t){return t.reduce(function(t,e){return t.concat(e.staticKeys||[])},[]).join(",")}(Vu)},Hu=g(xi),zu=/^([\w$_]+|\([^)]*?\))\s*=>|^function\s*\(/,Wu=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,Ku={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Yu={esc:"Escape",tab:"Tab",enter:"Enter",space:" ",up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete"]},Qu=function(t){return"if("+t+")return null;"},Ju={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Qu("$event.target !== $event.currentTarget"),ctrl:Qu("!$event.ctrlKey"),shift:Qu("!$event.shiftKey"),alt:Qu("!$event.altKey"),meta:Qu("!$event.metaKey"),left:Qu("'button' in $event && $event.button !== 0"),middle:Qu("'button' in $event && $event.button !== 1"),right:Qu("'button' in $event && $event.button !== 2")},Xu={on:Ti,bind:Pi,cloak:O},Zu=function(t){this.options=t,this.warn=t.warn||$n,this.transforms=Ln(t.modules,"transformCode"),this.dataGenFns=Ln(t.modules,"genData"),this.directives=w(w({},Xu),t.directives);var e=t.isReservedTag||yo;this.maybeComponent=function(t){return!e(t.tag)},this.onceId=0,this.staticRenderFns=[]},tc=(new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b"),new RegExp("\\b"+"delete,typeof,void".split(",").join("\\s*\\([^\\)]*\\)|\\b")+"\\s*\\([^\\)]*\\)"),function(t){return function(e){function n(n,r){var i=Object.create(e),o=[],s=[];if(i.warn=function(t,e){(e?s:o).push(t)},r){r.modules&&(i.modules=(e.modules||[]).concat(r.modules)),r.directives&&(i.directives=w(Object.create(e.directives||null),r.directives));for(var a in r)"modules"!==a&&"directives"!==a&&(i[a]=r[a])}var u=t(n,i);return u.errors=o,u.tips=s,u}return{compile:n,compileToFunctions:ro(n)}}}(function(t,e){var n=Yr(t.trim(),e);!1!==e.optimize&&wi(n,e);var r=ji(n,e);return{ast:n,render:r.render,staticRenderFns:r.staticRenderFns}})),ec=tc(qu),nc=ec.compileToFunctions,rc=!!ko&&io(!1),ic=!!ko&&io(!0),oc=g(function(t){var e=tn(t);return e&&e.innerHTML}),sc=Ne.prototype.$mount;Ne.prototype.$mount=function(t,e){if((t=t&&tn(t))===document.body||t===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=oc(r));else{if(!r.nodeType)return this;r=r.innerHTML}else t&&(r=oo(t));if(r){var i=nc(r,{shouldDecodeNewlines:rc,shouldDecodeNewlinesForHref:ic,delimiters:n.delimiters,comments:n.comments},this),o=i.render,s=i.staticRenderFns;n.render=o,n.staticRenderFns=s}}return sc.call(this,t,e)},Ne.compile=nc,e.a=Ne}).call(e,n(44),n(116).setImmediate)},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(94),i=n(61);t.exports=Object.keys||function(t){return r(t,i)}},function(t,e){var n=t.exports={version:"2.5.5"};"number"==typeof __e&&(__e=n)},function(t,e){t.exports=!1},function(t,e,n){var r=n(19);t.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var r=n(25),i=Math.max,o=Math.min;t.exports=function(t,e){return t=r(t),t<0?i(t+e,0):o(t,e)}},function(t,e,n){var r=n(6).f,i=n(11),o=n(4)("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},function(t,e){t.exports={}},function(t,e,n){var r=n(11),i=n(15),o=n(59)("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},function(t,e,n){var r=n(4)("unscopables"),i=Array.prototype;void 0==i[r]&&n(10)(i,r,{}),t.exports=function(t){i[r][t]=!0}},function(t,e,n){var r=n(1);t.exports=function(t,e){if(!r(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},function(t,e,n){var r=n(1);t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(94),i=n(61).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},function(t,e,n){var r=n(3),i=n(165),o=n(61),s=n(59)("IE_PROTO"),a=function(){},u=function(){var t,e=n(55)("iframe"),r=o.length;for(e.style.display="none",n(95).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("