Changes between Version 3 and Version 4 of SuperUserPlugin
- Timestamp:
- Apr 19, 2015, 12:51:06 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
SuperUserPlugin
v3 v4 1 = Super User Plugin = 1 [[PageOutline(2-5,Contents,pullout)]] 2 2 3 == Description == 3 = Super User Plugin 4 5 == Description 4 6 5 7 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. 6 8 7 8 == Bugs/Feature Requests == 9 == Bugs/Feature Requests 9 10 10 11 Existing bugs and feature requests for SuperUserPlugin are … … 14 15 [http://trac-hacks.org/newticket?component=SuperUserPlugin&owner=airadier new ticket]. 15 16 16 == Download == 17 [[TicketQuery(component=SuperUserPlugin&group=type,format=progress)]] 18 19 == Download 17 20 18 21 Download the zipped source from [download:superuserplugin here]. 19 22 20 == Source ==23 == Source 21 24 22 25 You can check out SuperUserPlugin from [http://trac-hacks.org/svn/superuserplugin here] using Subversion, or [source:superuserplugin browse the source] with Trac. 23 26 24 == Example ==27 == Example 25 28 26 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).29 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. 27 30 28 To enable the plugin, add the line:31 To enable the plugin, add the following line to your `trac.ini` file: 29 32 30 {{{ 33 {{{#!ini 31 34 [components] 32 35 tracsuperuser.* = enabled 33 36 }}} 34 37 35 to the ''components'' section in trac.ini.36 37 38 Then, replace the current PermissionStore. In this example ''DefaultPermissionStore'' was used before installing the superuser plugin: 38 39 39 {{{ 40 {{{#!ini 40 41 [trac] 41 42 ... … … 54 55 * '''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. 55 56 56 57 == Recent Changes == 57 == Recent Changes 58 58 59 59 [[ChangeLog(superuserplugin, 3)]] 60 60 61 == Author/Contributors ==61 == Author/Contributors 62 62 63 63 '''Author:''' [wiki:airadier] [[BR]] 64 '''Maintainer''': [[Maintainer]] [[BR]] 64 65 '''Contributors:'''