Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
ReglerAddress
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Leif Andersson
ReglerAddress
Commits
233aa245
Commit
233aa245
authored
4 years ago
by
Leif Andersson
Browse files
Options
Downloads
Patches
Plain Diff
Bara synlig för medlemmar i "UseReglerAddress"
parent
3d6ae0c8
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
ReglerAddress.module.php
+12
-3
12 additions, 3 deletions
ReglerAddress.module.php
action.defaultadmin.php
+6
-0
6 additions, 0 deletions
action.defaultadmin.php
with
18 additions
and
3 deletions
ReglerAddress.module.php
+
12
−
3
View file @
233aa245
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
* @since 1.0
* @since 1.0
* @version 2015-09-02
* @version 2015-09-02
* @modifiedby $LastChangedBy: LA $
* @modifiedby $LastChangedBy: LA $
* @lastmodified $Date: 20
15-09-02
$
* @lastmodified $Date: 20
21-05-28
$
* @license GPL
* @license GPL
**/
**/
class
ReglerAddress
extends
CMSModule
class
ReglerAddress
extends
CMSModule
...
@@ -43,7 +43,7 @@ class ReglerAddress extends CMSModule
...
@@ -43,7 +43,7 @@ class ReglerAddress extends CMSModule
* GetVersion()
* GetVersion()
* @return string version number (can be something like 1.4rc1)
* @return string version number (can be something like 1.4rc1)
*/
*/
function
GetVersion
()
{
return
'20
15-09-02
'
;
}
function
GetVersion
()
{
return
'20
21-05-28
'
;
}
/**
/**
* GetHelp()
* GetHelp()
...
@@ -115,9 +115,18 @@ class ReglerAddress extends CMSModule
...
@@ -115,9 +115,18 @@ class ReglerAddress extends CMSModule
/**
/**
* VisibleToAdminUser()
* VisibleToAdminUser()
* If your module does have an Admin Panel, you
* can control whether or not it's displayed by the boolean
* that is returned by this method. This is primarily used
* to hide modules from admins who lack permission to use
* them.
* In this case, the module will only be visible to admins
* who have "Use ReglerAddress" permissions.
* @return bool True if this module is shown to current user
* @return bool True if this module is shown to current user
*/
*/
function
VisibleToAdminUser
()
{
return
True
;
}
function
VisibleToAdminUser
()
{
return
$this
->
CheckPermission
(
'Use ReglerAddress'
);
}
/**
/**
* GetDependencies()
* GetDependencies()
...
...
This diff is collapsed.
Click to expand it.
action.defaultadmin.php
+
6
−
0
View file @
233aa245
...
@@ -15,6 +15,12 @@
...
@@ -15,6 +15,12 @@
if
(
!
defined
(
'CMS_VERSION'
)
)
exit
;
if
(
!
defined
(
'CMS_VERSION'
)
)
exit
;
//echo '<pre>'; print_r($params); echo '</pre>';
//echo '<pre>'; print_r($params); echo '</pre>';
if
(
!
$this
->
CheckPermission
(
'Use ReglerAddress'
))
{
return
$this
->
DisplayErrorPage
(
$id
,
$params
,
$returnid
,
'ReglerAddress Access denied'
);
}
$canChangeRecord
=
$this
->
CheckPermission
(
'Use ReglerAddress'
);
$canChangeRecord
=
$this
->
CheckPermission
(
'Use ReglerAddress'
);
/**
/**
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment