GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Description: Midgard Components Framework 3rd generation
Homepage: http://www.midgard-project.org
Clone URL: git://github.com/bergie/midcom.git
We have sudo now
bergie (author)
Thu Apr 24 21:07:58 -0700 2008
commit  8cdb7c44b74e4098708b994846ce073d1b91963a
tree    69a167a50b57777ae5117ab1167c328029e2b30a
parent  8d384f31156390d3c7d19dae13325a34702423e6
...
98
99
100
101
 
102
 
103
104
105
...
133
134
135
136
 
137
 
138
139
140
...
98
99
100
 
101
102
103
104
105
106
...
134
135
136
 
137
138
139
140
141
142
0
@@ -98,8 +98,9 @@ class midcom_core_helpers_metadata
0
 
0
         if ($approved)
0
         {
0
- // TODO: This should be a SUDO operation
0
+ $_MIDCOM->authorization->enter_sudo('midcom_core');
0
             midcom_core_helpers_metadata::approve(&$object);
0
+ $_MIDCOM->authorization->leave_sudo();
0
         }
0
     }
0
     
0
@@ -133,8 +134,9 @@ class midcom_core_helpers_metadata
0
         
0
         if ($approved)
0
         {
0
- // TODO: This should be a SUDO operation
0
+ $_MIDCOM->authorization->enter_sudo('midcom_core');
0
             midcom_core_helpers_metadata::approve(&$object);
0
+ $_MIDCOM->authorization->leave_sudo();
0
         }
0
     }
0
 }

Comments

    No one has commented yet.