-
Notifications
You must be signed in to change notification settings - Fork 13
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
2734649
commit 2e8f342
Showing
4 changed files
with
12 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,16 +3,19 @@ | |
namespace SilverStripe\SecurityReport\Subsites; | ||
|
||
use SilverStripe\ORM\DataExtension; | ||
use SilverStripe\Security\Member; | ||
use SilverStripe\Subsites\Model\Subsite; | ||
|
||
/** | ||
* Adds 'SubsiteDescription' for to show which subsites this Member has edit access to | ||
* | ||
* @author Damian Mooyman <[email protected]> | ||
* | ||
* @extends DataExtension<Member> | ||
*/ | ||
class SubsiteMemberReportExtension extends DataExtension | ||
{ | ||
|
||
/** | ||
* Set cast of additional field | ||
* | ||
|
@@ -22,15 +25,15 @@ class SubsiteMemberReportExtension extends DataExtension | |
private static $casting = array( | ||
'SubsiteDescription' => 'Text' | ||
); | ||
|
||
/** | ||
* Default permission to filter for | ||
* | ||
* @var string | ||
* @config | ||
*/ | ||
private static $subsite_description_permission = 'SITETREE_EDIT_ALL'; | ||
|
||
/** | ||
* Describes the subsites this user has SITETREE_EDIT_ALL access to | ||
* | ||
|
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