= Super User Plugin = == Description == This plugin automatically gives a given username ''TRAC_ADMIN'' permissions. I find this useful for a multiproject setup with AccountManagerPlugin, where users and passwords are shared between all projects, and I want an '''admin''' user to have full permissions without manually setting it on every project. == Bugs/Feature Requests == Existing bugs and feature requests for SuperUserPlugin are [report:9?COMPONENT=SuperUserPlugin here]. If you have any issues, create a [http://trac-hacks.org/newticket?component=SuperUserPlugin&owner=airadier new ticket]. == Download == Download the zipped source from [download:superuserplugin here]. == Source == You can check out SuperUserPlugin from [http://trac-hacks.org/svn/superuserplugin here] using Subversion, or [source:superuserplugin browse the source] with Trac. == Example == The plugin works by wrapping the current PermissionStore, in order to fake the superuser permissions (permissions are not added to the database, but added ''on the fly'' when requested). To enable the plugin, add the line: {{{ [components] tracsuperuser.* = enabled }}} to the ''components'' section in trac.ini. Then, replace the current PermissionStore. In this example ''DefaultPermissionStore'' was used before installing the superuser plugin: {{{ [trac] ... permission_store = SuperUserPlugin ... [superuser] superuser = admin wrapped_permission_store = DefaultPermissionStore ... }}} Where: * '''permission_store''': Use SuperUserPlugin as the new permission store. * '''supersuser''': The name of the user with admin permissions * '''wrapped_permission_store''': The permission store being used previously. If the user is not the superuser, this permission store will be used to retrieve the user permissions. == Recent Changes == [[ChangeLog(superuserplugin, 3)]] == Author/Contributors == '''Author:''' [wiki:airadier] [[BR]] '''Contributors:'''