projects
/
fusionforge
/
fusionforge.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
project home
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix [#256]: fail to set roles
[fusionforge/fusionforge.git]
/
src
/
utils
/
inject-groups.php
diff --git
a/src/utils/inject-groups.php
b/src/utils/inject-groups.php
index 9fd66a6c3b1b3897646e7a055b2fd1a8383ccf38..b39cd4668c9cffa017adaeb14b807334c17b944d 100644
(file)
--- a/
src/utils/inject-groups.php
+++ b/
src/utils/inject-groups.php
@@
-61,7
+61,7
@@
while (! feof ($f)) {
$admin = user_get_object_by_name ('admin') ;
session_set_new ($admin->getID ()) ;
- $r = $g->
setStatus ($admin, 'A'
) ;
+ $r = $g->
approve ($admin
) ;
if (!$r) {
print "Error: ". $g->getErrorMessage () . "\n" ;
db_rollback () ;