Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
e3c429bc
Commit
e3c429bc
authored
May 02, 2015
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
src: style and whitespaces
parent
705080ca
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
9 deletions
+10
-9
Menu.xml
src/opnsense/mvc/app/models/OPNsense/Base/Menu/Menu.xml
+1
-1
ACL.php
src/opnsense/mvc/app/models/OPNsense/Core/ACL.php
+8
-7
ACL_Legacy_Page_Map.json
...nse/mvc/app/models/OPNsense/Core/ACL_Legacy_Page_Map.json
+1
-1
No files found.
src/opnsense/mvc/app/models/OPNsense/Base/Menu/Menu.xml
View file @
e3c429bc
...
...
@@ -37,7 +37,7 @@
<Settings
url=
"/system_usermanager_settings.php"
/>
<Servers
url=
"/system_authservers.php"
/>
</UserManager>
</System>
<Interfaces
order=
"2"
cssClass=
"glyphicon glyphicon-wrench"
>
...
...
src/opnsense/mvc/app/models/OPNsense/Core/ACL.php
View file @
e3c429bc
...
...
@@ -92,19 +92,20 @@ class ACL
// gather user / group data from config.xml
$config
=
Config
::
getInstance
()
->
object
()
;
foreach
(
$config
->
system
->
children
()
as
$key
=>
$node
)
{
if
(
$key
==
"user"
)
{
if
(
$key
==
'user'
)
{
$this
->
legacyUsers
[
$node
->
name
->
__toString
()]
=
array
()
;
$this
->
legacyUsers
[
$node
->
name
->
__toString
()][
"uid"
]
=
$node
->
uid
->
__toString
();
$this
->
legacyUsers
[
$node
->
name
->
__toString
()][
"groups"
]
=
array
();
$this
->
legacyUsers
[
$node
->
name
->
__toString
()][
"priv"
]
=
array
();
$this
->
legacyUsers
[
$node
->
name
->
__toString
()][
'uid'
]
=
$node
->
uid
->
__toString
();
$this
->
legacyUsers
[
$node
->
name
->
__toString
()][
'groups'
]
=
array
();
$this
->
legacyUsers
[
$node
->
name
->
__toString
()][
'priv'
]
=
array
();
foreach
(
$node
->
priv
as
$priv
)
{
if
(
substr
(
$priv
,
0
,
5
)
==
"page-"
)
{
if
(
substr
(
$priv
,
0
,
5
)
==
'page-'
)
{
if
(
array_key_exists
(
$priv
->
__toString
(),
$legacyPageMap
))
{
$this
->
legacyUsers
[
$node
->
name
->
__toString
()][
"priv"
][]
=
$legacyPageMap
[
$priv
->
__toString
()]
;
$this
->
legacyUsers
[
$node
->
name
->
__toString
()][
'priv'
][]
=
$legacyPageMap
[
$priv
->
__toString
()];
}
}
}
}
elseif
(
$key
==
"group"
)
{
}
elseif
(
$key
==
'group'
)
{
$groupmap
[
$node
->
name
->
__toString
()]
=
$node
;
}
}
...
...
src/opnsense/mvc/app/models/OPNsense/Core/ACL_Legacy_Page_Map.json
View file @
e3c429bc
...
...
@@ -1662,4 +1662,4 @@
"xmlrpc.php*"
]
}
}
\ No newline at end of file
}
Write
Preview
Markdown
is supported
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