Difference between revisions of "GNU social Tips"

From Akionux-wiki
Share/Save/Bookmark
Jump to: navigation, search
m
m (Granting/Revoking role of user)
 
Line 5: Line 5:
 
  php scripts/userrole.php -n new_admin -r administrator -v
 
  php scripts/userrole.php -n new_admin -r administrator -v
 
Revoking role of administrator to an user of nick name <code>old_admin</code>:
 
Revoking role of administrator to an user of nick name <code>old_admin</code>:
  php scripts/userrole.php -d -n new_admin -r administrator -v
+
  php scripts/userrole.php -d -n old_admin -r administrator -v
  
 
An user with role of administrator will see 'Admin' section after login.
 
An user with role of administrator will see 'Admin' section after login.

Latest revision as of 01:22, 11 January 2016

Granting/Revoking role of user

To grant or revoke role of an user, you can use scripts/userrole.php.

Granting role of administrator to an user of nick name new_admin:

php scripts/userrole.php -n new_admin -r administrator -v

Revoking role of administrator to an user of nick name old_admin:

php scripts/userrole.php -d -n old_admin -r administrator -v

An user with role of administrator will see 'Admin' section after login.

Other than administrator, there are also roles of owner, moderator, sandboxed, silenced and deleted. I don't know what will effect on users with those roles.

References