Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Leif Andersson
ReglerAddress
Commits
233aa245
Commit
233aa245
authored
May 28, 2021
by
Leif Andersson
Browse files
Bara synlig för medlemmar i "UseReglerAddress"
parent
3d6ae0c8
Changes
2
Hide whitespace changes
Inline
Side-by-side
ReglerAddress.module.php
View file @
233aa245
...
...
@@ -19,7 +19,7 @@
* @since 1.0
* @version 2015-09-02
* @modifiedby $LastChangedBy: LA $
* @lastmodified $Date: 20
15-09-02
$
* @lastmodified $Date: 20
21-05-28
$
* @license GPL
**/
class
ReglerAddress
extends
CMSModule
...
...
@@ -43,7 +43,7 @@ class ReglerAddress extends CMSModule
* GetVersion()
* @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()
...
...
@@ -115,9 +115,18 @@ class ReglerAddress extends CMSModule
/**
* 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
*/
function
VisibleToAdminUser
()
{
return
True
;
}
function
VisibleToAdminUser
()
{
return
$this
->
CheckPermission
(
'Use ReglerAddress'
);
}
/**
* GetDependencies()
...
...
action.defaultadmin.php
View file @
233aa245
...
...
@@ -15,6 +15,12 @@
if
(
!
defined
(
'CMS_VERSION'
)
)
exit
;
//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'
);
/**
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment