Skip to content

Commit

Permalink
chore: MIT license
Browse files Browse the repository at this point in the history
  • Loading branch information
SychO9 committed Dec 23, 2023
1 parent 8bdab22 commit 9432d00
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 14 deletions.
29 changes: 17 additions & 12 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
Private Facade Flarum Extension
The MIT License (MIT)

Copyright (C) 2021 Sami Ilyes Mazouz "SychO" [email protected]
Copyright (c) 2023-2024 Sami Mazouz

Subject to Licensee's compliance with the terms and conditions of this Agreement, Licensor hereby grants Licensee a perpetual, non-transferable, non-sublicensable, non-exclusive right and license (a) to integrate the Licensed Software with Licensee's forum.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

Terms and Conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

You are not permitted to reproduce, copy, distribute or resell the Software.
You are not permitted to allow any third party to use the Software on behalf of or for the benefit of any third party.
You are not permitted to use the Software in any way which breaches any applicable local, national or international law.
This software is hereby provided with no warranty.
The author reserves the right to re-license, for example under MIT, and/or publish the source code/project in the future, for free.
Intellectual Property and Ownership The author shall at all times retain ownership of the Software as originally downloaded by you and all subsequent downloads of the Software by you. The Software (and the copyright, and other intellectual property rights of whatever nature in the Software, including any modifications made thereto) are and shall remain the property of Sami Ilyes Mazouz. The author reserves the right to grant licences to use the Software to third parties.

Termination This agreement is effective from the date you first use the Software and shall continue until terminated.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"flarum", "private", "login", "signup", "page"
],
"type": "flarum-extension",
"license": "proprietary",
"license": "mit",
"require": {
"flarum/core": "^1.2.0"
},
Expand Down
4 changes: 3 additions & 1 deletion js/src/forum/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ app.initializers.add('sycho/flarum-private-facade', () => {
!app.session.user &&
app.forum.attribute<boolean>('sycho-private-facade.force_redirect') &&
!app.forum.attribute<Array<string>>('sycho-private-facade.route_exclusions').includes(this.routeName) &&
!urlExclusions.some((url) => url.includes('*') ? new RegExp(url.replace(/\*/g, '.*').replace(/\//g, '\\/')).test(requestedPath) : url === requestedPath)
!urlExclusions.some((url) =>
url.includes('*') ? new RegExp(url.replace(/\*/g, '.*').replace(/\//g, '\\/')).test(requestedPath) : url === requestedPath
)
) {
return m.route.set(app.route('sycho-private-facade.login'));
}
Expand Down

0 comments on commit 9432d00

Please sign in to comment.