diff --git a/skolehjem/database/seeds/PermissionSeeder.php b/skolehjem/database/seeds/PermissionSeeder.php index 8e2a639..53de434 100644 --- a/skolehjem/database/seeds/PermissionSeeder.php +++ b/skolehjem/database/seeds/PermissionSeeder.php @@ -40,14 +40,64 @@ class PermissionSeeder extends Seeder "link.external.edit" => "Allows editing of external links.", "link.external.delete" => "Allows deletion of external links", + /** + * The EVENT specific permissions + */ "event.create" => "Create a new event", "event.list" => "Shows all events", - "event.show" => "Shows event", - "event.edit" => "Edit event", - "event.delete" => "Deletes an event", + "event.show" => "Shows a specific event", + "event.edit" => "Allows editing of events", + "event.delete" => "Allows deletion of events", "contact.create" => "Creates a new contact", - "contact.list" => "" + "contact.list" => "Shows all contacts", + "contact.show" => "Shows a specific contact", + "contact.edit" => "allows editing of contacts", + "contact.delete" => "Allows deletion of contacts", + + "feedback.create" => "Creates a new feedback message", + "feedback.list" => "Shows all feedback messages", + "feedback.show" => "Shows a specific feedback message", + "feedback.edit" => "allows editing of feedback messages", + "feedback.delete" => "allows deletion of feedback messages", + + "menuplan.create" => "Create a new menuplan", + "menuplan.list" => "Shows all menuplans", + "menuplan.show" => "Shows a specific menuplan", + "menuplan.edit" => "Allows editing of menuplans", + "menuplan.delete" => "Allows deletion of menuplans", + + "resource.category.create" => "Create a new resource category", + "resource.category.list" => "Shows all resource categories", + "resource.category.show" => "Shows a specific resource category", + "resource.category.edit" => "Allows editing of resource categories", + "resource.category.delete" => "Allows deletion of resource categories", + + "resource.extension.create" => "Create a new resource extension", + "resource.extension.list" => "Shows all resource extensions", + "resource.extension.show" => "Shows a specific resource extension", + "resource.extension.edit" => "Allows editing of resource extensions", + "resource.extension.delete" => "Allows deletion of resource extensions", + + "resource.create" => "Create a new resource", + "resource.list" => "Shows all resources", + "resource.show" => "Shows a specific resource", + "resource.edit" => "Allows editing of resources", + "resource.delete" => "Allows deletion of resources", + + "washing.machine.create" => "Create a new washing machine", + "washing.machine.list" => "Shows all washing machines", + "washing.machine.show" => "Shows a specific washing machine", + "washing.machine.edit" => "Allows editing of washing machines", + "washing.machine.delete" => "Allows deletion of washing machines", + + "washing.machine.reservation.create" => "Create a new washing machine reservation", + "washing.machine.reservation.list" => "Shows all washing machine reservations", + "washing.machine.reservation.show" => "Shows a specific washing machine reservation", + "washing.machine.reservation.edit" => "Allows editing of washing machine reservations", + "washing.machine.reservation.delete" => "Allows deletion of washing machine reservations", + + ]; foreach ($permissions as $key => $value) { diff --git a/swagger/dist/swagger-editor.js b/swagger/dist/swagger-editor.js index e1c97f8..f3d9edd 100644 --- a/swagger/dist/swagger-editor.js +++ b/swagger/dist/swagger-editor.js @@ -1,2 +1,2 @@ -!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.SwaggerEditorBundle=e():t.SwaggerEditorBundle=e()}(window,(function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="/dist",r(r.s=242)}([function(t,e,r){var n=r(493),i=r(494),o=r(501);t.exports=function(t){return n(t)||i(t)||o()}},function(t,e,r){var n=r(37);t.exports=function(t,e,r){return e in t?n(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}},function(t,e){var r=Array.isArray;t.exports=r},function(t,e,r){var n=r(44),i=r(40),o=r(57),a=r(112),s=r(114),u=function(t,e,r){var c,l,p,f,h=t&u.F,d=t&u.G,m=t&u.S,v=t&u.P,g=t&u.B,y=d?n:m?n[e]||(n[e]={}):(n[e]||{}).prototype,_=d?i:i[e]||(i[e]={}),b=_.prototype||(_.prototype={});for(c in d&&(r=e),r)p=((l=!h&&y&&void 0!==y[c])?y:r)[c],f=g&&l?s(p,n):v&&"function"==typeof p?s(Function.call,p):p,y&&a(y,c,p,t&u.U),_[c]!=p&&o(_,c,f),v&&b[c]!=p&&(b[c]=p)};n.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},function(t,e){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}},function(t,e){var r=t.exports={version:"2.6.9"};"number"==typeof __e&&(__e=r)},function(t,e){t.exports=require("react")},function(t,e,r){t.exports=r(359)},function(t,e,r){var n=r(11),i=r(5),o=r(58),a=r(47),s=r(49),u=function(t,e,r){var c,l,p,f=t&u.F,h=t&u.G,d=t&u.S,m=t&u.P,v=t&u.B,g=t&u.W,y=h?i:i[e]||(i[e]={}),_=y.prototype,b=h?n:d?n[e]:(n[e]||{}).prototype;for(c in h&&(r=e),r)(l=!f&&b&&void 0!==b[c])&&s(y,c)||(p=l?b[c]:r[c],y[c]=h&&"function"!=typeof b[c]?r[c]:v&&l?o(p,n):g&&b[c]==p?function(t){var e=function(e,r,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,r)}return new t(e,r,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(p):m&&"function"==typeof p?o(Function.call,p):p,m&&((y.virtual||(y.virtual={}))[c]=p,t&u.R&&_&&!_[c]&&a(_,c,p)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},function(t,e,r){var n=r(327),i=r(334);function o(t){return(o="function"==typeof i&&"symbol"==typeof n?function(t){return typeof t}:function(t){return t&&"function"==typeof i&&t.constructor===i&&t!==i.prototype?"symbol":typeof t})(t)}function a(e){return"function"==typeof i&&"symbol"===o(n)?t.exports=a=function(t){return o(t)}:t.exports=a=function(t){return t&&"function"==typeof i&&t.constructor===i&&t!==i.prototype?"symbol":o(t)},a(e)}t.exports=a},function(t,e,r){t.exports=r(486)},function(t,e){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,r){t.exports=r(475)},function(t,e,r){t.exports=r(471)},function(t,e,r){var n=r(125)("wks"),i=r(95),o=r(11).Symbol,a="function"==typeof o;(t.exports=function(t){return n[t]||(n[t]=a&&o[t]||(a?o:i)("Symbol."+t))}).store=n},function(t,e,r){var n=r(160)("wks"),i=r(113),o=r(44).Symbol,a="function"==typeof o;(t.exports=function(t){return n[t]||(n[t]=a&&o[t]||(a?o:i)("Symbol."+t))}).store=n},function(t,e,r){var n=r(3),i=r(26),o=r(41),a=/"/g,s=function(t,e,r,n){var i=String(o(t)),s="<"+e;return""!==r&&(s+=" "+r+'="'+String(n).replace(a,""")+'"'),s+">"+i+""};t.exports=function(t,e){var r={};r[t]=e(s),n(n.P+n.F*i((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3})),"String",r)}},function(t,e,r){var n=r(488),i=r(489),o=r(492);t.exports=function(t,e){return n(t)||i(t,e)||o()}},function(t,e){t.exports=require("immutable")},function(t,e,r){var n=r(70),i=Math.min;t.exports=function(t){return t>0?i(n(t),9007199254740991):0}},function(t,e,r){"use strict";var n=r(26);t.exports=function(t,e){return!!t&&n((function(){e?t.call(null,(function(){}),1):t.call(null)}))}},function(t,e,r){var n=r(34);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},function(t,e,r){t.exports=!r(48)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,e,r){var n=r(186),i="object"==typeof self&&self&&self.Object===Object&&self,o=n||i||Function("return this")();t.exports=o},function(t,e,r){t.exports=r(358)},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,r){var n=r(37);function i(t,e){for(var r=0;r=e||r<0||v&&t-d>=l}function w(){var t=i();if(b(t))return x(t);f=setTimeout(w,function(t){var r=e-(t-h);return v?s(r,l-(t-d)):r}(t))}function x(t){return f=void 0,g&&u?y(t):(u=c=void 0,p)}function k(){var t=i(),r=b(t);if(u=arguments,c=this,h=t,r){if(void 0===f)return _(h);if(v)return clearTimeout(f),f=setTimeout(w,e),y(h)}return void 0===f&&(f=setTimeout(w,e)),p}return e=o(e)||0,n(r)&&(m=!!r.leading,l=(v="maxWait"in r)?a(o(r.maxWait)||0,e):l,g="trailing"in r?!!r.trailing:g),k.cancel=function(){void 0!==f&&clearTimeout(f),d=0,u=h=c=f=void 0},k.flush=function(){return void 0===f?p:x(i())},k}},function(t,e,r){var n=r(22),i=r(173),o=r(121),a=Object.defineProperty;e.f=r(23)?Object.defineProperty:function(t,e,r){if(n(t),e=o(e,!0),n(r),i)try{return a(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,r){var n=r(175),i=r(94);t.exports=function(t){return n(i(t))}},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e,r){t.exports=r(325)},function(t,e,r){t.exports=r(353)},function(t,e,r){t.exports=r(356)},function(t,e){var r=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=r)},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,r){var n=r(41);t.exports=function(t){return Object(n(t))}},function(t,e,r){t.exports=r(474)},function(t,e){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(t,e,r){var n=r(68),i=r(41);t.exports=function(t){return n(i(t))}},function(t,e,r){var n=r(114),i=r(68),o=r(42),a=r(20),s=r(300);t.exports=function(t,e){var r=1==t,u=2==t,c=3==t,l=4==t,p=6==t,f=5==t||p,h=e||s;return function(e,s,d){for(var m,v,g=o(e),y=i(g),_=n(s,d,3),b=a(y.length),w=0,x=r?h(e,b):u?h(e,0):void 0;b>w;w++)if((f||w in y)&&(v=_(m=y[w],w,g),t))if(r)x[w]=v;else if(v)switch(t){case 3:return!0;case 5:return m;case 6:return w;case 2:x.push(m)}else if(l)return!1;return p?-1:c||l?l:x}}},function(t,e,r){var n=r(33),i=r(73);t.exports=r(23)?function(t,e,r){return n.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},function(t,e,r){var n=r(51),i=r(362),o=r(363),a=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?i(t):o(t)}},function(t,e,r){var n=r(24).Symbol;t.exports=n},function(t,e,r){var n=r(364),i=r(367);t.exports=function(t,e){var r=i(t,e);return n(r)?r:void 0}},function(t,e,r){var n=r(191),i=r(377),o=r(62);t.exports=function(t){return o(t)?n(t):i(t)}},function(t,e,r){var n=r(146);t.exports=function(t,e,r){var i=null==t?void 0:n(t,e);return void 0===i?r:i}},function(t,e,r){t.exports=r(320)},function(t,e){t.exports=require("reselect")},function(t,e,r){var n=r(65),i=r(111);t.exports=r(67)?function(t,e,r){return n.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},function(t,e,r){var n=r(93);t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,i){return t.call(e,r,n,i)}}return function(){return t.apply(e,arguments)}}},function(t,e,r){var n=r(174),i=r(126);t.exports=Object.keys||function(t){return n(t,i)}},function(t,e){t.exports={}},function(t,e,r){var n=r(94);t.exports=function(t){return Object(n(t))}},function(t,e,r){var n=r(108),i=r(135);t.exports=function(t){return null!=t&&i(t.length)&&!n(t)}},function(t,e,r){t.exports=r(351)},function(t,e){t.exports=require("js-yaml")},function(t,e,r){var n=r(89),i=r(246),o=r(247),a=Object.defineProperty;e.f=r(67)?Object.defineProperty:function(t,e,r){if(n(t),e=o(e,!0),n(r),i)try{return a(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,r){t.exports=!r(26)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,e,r){var n=r(69);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},function(t,e){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:r)(t)}},function(t,e,r){var n=r(70),i=Math.max,o=Math.min;t.exports=function(t,e){return(t=n(t))<0?i(t+e,0):o(t,e)}},function(t,e,r){var n=r(16)("unscopables"),i=Array.prototype;null==i[n]&&r(57)(i,n,{}),t.exports=function(t){i[n][t]=!0}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,e){t.exports=!0},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,r){"use strict";var n=r(329)(!0);r(176)(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,r=this._i;return r>=e.length?{value:void 0,done:!0}:(t=n(e,r),this._i+=t.length,{value:t,done:!1})}))},function(t,e){t.exports=require("prop-types")},function(t,e,r){var n=r(380),i=r(418),o=r(204),a=r(2),s=r(426);t.exports=function(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?a(t)?i(t[0],t[1]):n(t):s(t)}},function(t,e,r){var n=r(413),i=r(141),o=r(414),a=r(415),s=r(416),u=r(50),c=r(188),l=c(n),p=c(i),f=c(o),h=c(a),d=c(s),m=u;(n&&"[object DataView]"!=m(new n(new ArrayBuffer(1)))||i&&"[object Map]"!=m(new i)||o&&"[object Promise]"!=m(o.resolve())||a&&"[object Set]"!=m(new a)||s&&"[object WeakMap]"!=m(new s))&&(m=function(t){var e=u(t),r="[object Object]"==e?t.constructor:void 0,n=r?c(r):"";if(n)switch(n){case l:return"[object DataView]";case p:return"[object Map]";case f:return"[object Promise]";case h:return"[object Set]";case d:return"[object WeakMap]"}return e}),t.exports=m},function(t,e,r){var n=r(106);t.exports=function(t){if("string"==typeof t||n(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},function(t,e,r){var n=r(205),i=r(100);t.exports=function(t,e,r,o){var a=!r;r||(r={});for(var s=-1,u=e.length;++s0?i(n(t),9007199254740991):0}},function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:r)(t)}},function(t,e,r){var n=r(125)("keys"),i=r(95);t.exports=function(t){return n[t]||(n[t]=i(t))}},function(t,e,r){var n=r(5),i=r(11),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:n.version,mode:r(75)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,r){var n=r(22),i=r(178),o=r(126),a=r(124)("IE_PROTO"),s=function(){},u=function(){var t,e=r(120)("iframe"),n=o.length;for(e.style.display="none",r(179).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("