-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
826b026
commit 7241b72
Showing
8 changed files
with
102 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
<?php | ||
/** | ||
* @brief Moderator Permissions | ||
* | ||
* @author <a href='https://www.invisioncommunity.com'>Invision Power Services, Inc.</a> | ||
* @copyright (c) Invision Power Services, Inc. | ||
* @license https://www.invisioncommunity.com/legal/standards/ | ||
* | ||
* @since 08 Jun 2023 | ||
*/ | ||
|
||
namespace IPS\stripeverification\extensions\core\ModeratorPermissions; | ||
|
||
/* To prevent PHP errors (extending class does not exist) revealing path */ | ||
if (! \defined('\IPS\SUITE_UNIQUE_KEY')) { | ||
header((isset($_SERVER['SERVER_PROTOCOL']) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0').' 403 Forbidden'); | ||
exit; | ||
} | ||
|
||
/** | ||
* Moderator Permissions | ||
*/ | ||
class _Verifications | ||
{ | ||
/** | ||
* Get Permissions | ||
* | ||
* @code | ||
); | ||
* @endcode | ||
*/ | ||
public function getPermissions(): array | ||
{ | ||
return [ | ||
'can_manage_verifications' => 'YesNo', | ||
]; | ||
} | ||
|
||
/** | ||
* Pre-save | ||
* | ||
* @note This can be used to adjust the values submitted on the form prior to saving | ||
* | ||
* @param array $values The submitted form values | ||
* @return void | ||
*/ | ||
public function preSave(&$values) | ||
{ | ||
|
||
} | ||
|
||
/** | ||
* After change | ||
* | ||
* @param array $moderator The moderator | ||
* @param array $changed Values that were changed | ||
* @return void | ||
*/ | ||
public function onChange($moderator, $changed) | ||
{ | ||
|
||
} | ||
|
||
/** | ||
* After delete | ||
* | ||
* @param array $moderator The moderator | ||
* @return void | ||
*/ | ||
public function onDelete($moderator) | ||
{ | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"normal": { | ||
"added": [ | ||
"modperms__stripeverification_Verifications", | ||
"can_manage_verifications" | ||
], | ||
"edited": [], | ||
"removed": [] | ||
}, | ||
"js": { | ||
"added": [], | ||
"edited": [], | ||
"removed": [] | ||
} | ||
} |