summaryrefslogtreecommitdiffstats
path: root/lib/roles.lua
Commit message (Collapse)AuthorAgeFilesLines
* Modified authenticator to add get_subauth functionTed Trask2012-10-021-4/+8
| | | | Once this function is used everywhere (instead of the auth public variable) we can remove the dependency on APP
* Fixed roles to only take the first roles file for a prefix/name combinationTed Trask2012-02-011-37/+50
|
* Modified require statements for acf.xTed Trask2012-01-211-2/+2
|
* Must allow roles to have '-' characterTed Trask2012-01-191-2/+2
|
* Fixed bug in roles where last matching controller used, rather than firstTed Trask2012-01-191-1/+3
|
* Removed duplicates from determine_perms arraysTed Trask2011-06-271-5/+11
|
* Fixed bug in loading controllers to determine available actions.Ted Trask2010-11-151-0/+3
|
* Added home page (action) to user parameters and redirect there after loginTed Trask2010-10-061-2/+33
| | | | Moved get_all_permissions function from acf-util/roles-model to lib/roles
* Made major changes to authenticator and roles to improve efficiency.Ted Trask2010-09-281-42/+56
| | | | | | | | | | Changed authenticator.lua to request individual users, rather than always loading everyone. Modified get_userinfo and removed get_userinfo_roles and get_userinfo_skin to remove unnecessary cfe processing. This was especially bad when retrieving the cfe options for skins and roles. This does break the interface used by other modules like acf-tinydns. Validation and cfe processing were moved into password-model, where they belong. Added global variables to authenticator and roles libraries so they can reuse data that was already generated. Modified logon-controller to only check for zero users if logon fails.
* Allow appdir and libdir to be comma-separated lists of directories.Ted Trask2009-12-311-7/+16
|
* Cleaned up acf.conf, removed hardcoded /usr/share/acf paths.Ted Trask2009-12-301-2/+2
|
* Added ability to manage roles based on which roles file they're in = more ↵Ted Trask2009-12-281-24/+45
| | | | granularity of roles.
* Fixed template bug, remembered to actually remove the basename/dirname ↵Ted Trask2009-12-281-2/+2
| | | | functions.
* Removed redundant/buggy basename and dirname functions. Added ↵Ted Trask2009-12-281-1/+1
| | | | | | | parse_redir_string to www controller. Removed basename and dirname from mvc and fs, use posix functions instead. parse_path_info was buggy and used 2 ways, rewrote and created parse_redir_string for backwards parsing.
* Modified menus to allow multiple controllers to use same menu group.Ted Trask2009-12-231-2/+4
| | | | Also, allow for symlinks when searching for menu files. Slight cleanup of roles.
* Fixed roles bugs - path containing '.' and matching controller names.Ted Trask2009-12-221-12/+16
|
* Fixed bug with roles, added follow symlink flag for fs.find, allowed ↵Ted Trask2009-12-221-6/+6
| | | | | | symlinks in /usr/share/acf/app. Controllers with same name but different prefix were not correct in roles.
* Modified permissions from controller:action to prefix/controller/action.Ted Trask2009-12-211-70/+37
| | | | | Had to move welcome to the acf-util prefix. Changed format of roles files: old ACF format will still work, but authenticator format won't.
* Started process of removing as many io.popen calls as possible. Not complete.Ted Trask2009-01-241-11/+5
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1695 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Added escapespecialcharacters to format.lua to escape shell special ↵release-0.4.19Ted Trask2009-01-211-1/+1
| | | | | | characters. Reviewed all calls to io.popen and os.execute to escape special characters. Fixed file uploads in openssl and ipsectools with viewfunctions.lua. Tried to fix openssl renew when subject contains special characters, but not done yet. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1687 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Modified fs.lua to survive nil parameters. Added create_directory and used ↵Ted Trask2009-01-131-3/+3
| | | | | | within create_file and write_file. Reviewed each read_file call to make sure handles nil return value. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1677 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Cleaned up package path code in roles.Ted Trask2008-11-111-3/+3
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1593 ab2d0c66-481e-0410-8bed-d214d4d58bed
* roles in permissions needed to look for _ in controllers as wellNathan Angelacos2008-11-111-1/+1
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1592 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Allow controllers to have digits in their namesNathan Angelacos2008-11-111-6/+6
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1591 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Modified roles to allow '_' in controller names.Ted Trask2008-11-101-6/+6
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1586 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Minor change to roles code and major change to roles. Replaced ALL, CREATE, ↵Ted Trask2008-10-241-33/+36
| | | | | | READ, UPDATE, and DELETE with GUEST, USER, EDITOR, EXPERT, and ADMIN. Changed all roles files and modified some html files to hide options without permissions. Determine default roles from roles files, rather than hard-coded, and added ability to modify default roles by adding permissions. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1563 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Modified authenticator to make sub-authenticator visible rather that ↵Ted Trask2008-09-301-5/+5
| | | | | | redefining the functions twice. Modified roles and tinydns to reflect change. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1537 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Cleanup of some libs.Ted Trask2008-09-261-1/+0
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1533 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Modified roles to use authenticator rather than directly access roles file. ↵Ted Trask2008-08-181-32/+45
| | | | | | This will facilitate moving roles and passwd to a database. Had to allow roles file to use : instead of = git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1384 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Modified roles and authenticator to delete all data fields when deleting a ↵Ted Trask2008-08-161-11/+16
| | | | | | role or user. Modified all roles code to pass self for future move from text file to database. Roles cannot use authenticator unless or until roles file syntax is changed. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1382 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Modified roles to list views that don't have actions in the list of ↵Ted Trask2008-08-091-1/+10
| | | | | | available permissions git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1374 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Finished user and role managementTed Trask2008-05-051-3/+6
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1100 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Updated rolesTed Trask2008-05-021-15/+108
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1099 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Modified roles, logon, and authenticatorTed Trask2008-05-011-1/+32
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1095 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Ted's Logon/permissions changesTed Trask2008-04-211-41/+68
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1030 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Added the full roles to the sessiondata.Mike Mason2008-02-051-0/+24
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@696 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Adding the beingings of the authorization items. Also adding some of the ↵Mike Mason2008-02-041-0/+57
updates to the Autentication. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@689 ab2d0c66-481e-0410-8bed-d214d4d58bed