Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MaarchCourrier
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Harbor Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maarch
MaarchCourrier
Commits
e923d42a
Commit
e923d42a
authored
14 years ago
by
Giovannoni Laurent
Browse files
Options
Downloads
Patches
Plain Diff
fix : bug 83 Régression sur les champs customs
parent
312e1383
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/trunk/core/class/class_core_tools.php
+18
-0
18 additions, 0 deletions
core/trunk/core/class/class_core_tools.php
with
18 additions
and
0 deletions
core/trunk/core/class/class_core_tools.php
+
18
−
0
View file @
e923d42a
...
...
@@ -1311,6 +1311,24 @@ class core_tools extends functions
return
_NO_LABEL_FOUND
;
}
/**
* Test if a service is enabled
*
* @param $id_service string Service identifier
* @return boolean true if enabled false if not
*/
public
function
service_is_enabled
(
$id_service
)
{
for
(
$i
=
0
;
$i
<
count
(
$_SESSION
[
'enabled_services'
]);
$i
++
)
{
if
(
$_SESSION
[
'enabled_services'
][
$i
][
'id'
]
==
$id_service
)
{
return
true
;
}
}
return
false
;
}
/**
* Tests if the user has admin rights on the service
*
...
...
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