f26b81977c
Implemented CMS_LINK.is_forbidden in all descendants.
2015-08-06 11:52:35 +02:00
bbf7456fa2
Improve permissions list display, to be sorted.
...
Better permission names for "admin users" and "admin roles".
2015-08-04 16:42:06 +02:00
62ef07c86b
Removed unwanted files.
2015-08-04 15:22:11 +02:00
a422dea15d
Improved message after successful role creation.
...
Removed useless code.
2015-08-04 14:56:55 +02:00
6fb7bf9a1d
Updated location of http_authorization library (now under library\web\authentication\..)
2015-08-04 13:27:09 +02:00
bba1d57ce3
Fixed and improved various issue in admin module (especially the Role editing which was not working as expected.)
...
Added CMS_MODULE.permissions to allow module to declare the potential permissions.
Added support for CMS_LINK.is_forbidden, in relation with CMS_LOCAL_LINK.permission_arguments.
Split link "username (Logout)" into 2 links "username" and "logout".
Fixed/Changed the way auth modules alter the logout link based on "(Logout)" title, by safer solution based on `location' of the link.
Fixed usage of WSF_REQUEST.path_info by using percent_encoded_path_info which is not non unicode path info to be used most of the time.
Merged CMS_REPONSE.variables and CMS_REPONSE.values .
When possible, prefer usage of CMS_RESPONSE.user instead of CMS_REQUEST_UTIL.current_user (WSF_REQUEST) whenever it is possible.
When possible, prefer usage of CMS_RESPONSE.location, rather than usage of WSF_REQUEST.(percent_encoded_)path_info .
Code cleaning.
2015-08-04 12:48:14 +02:00
c271f839e2
Merge remote-tracking branch 'jvelilla/roc_admin' into ewf_v1
2015-08-03 14:05:03 +02:00
5d81f1d195
Improve previous commit to show allowed tabs only if user has access to it.
2015-08-03 12:56:05 +02:00
jvelilla
63f3ec12d0
Fixed issue with CMS_USER_STORAGE_SQL_I.save_user_role
2015-07-31 11:58:36 -03:00
jvelilla
863a1e7b98
Show tabs iff a user is authenticated
2015-07-30 17:36:14 -03:00
jvelilla
0fe9018ce9
Updated Admin Module, show Admin in the navigation
...
iff the current user is administrator.
2015-07-30 12:59:10 -03:00
jvelilla
1ef4025caa
Update user storage,
...
Clean code
2015-07-30 11:06:03 -03:00
jvelilla
3ebffad3d6
Updated cms admin
2015-07-29 19:31:18 -03:00
500f8f78a4
Fixed implementation of CMS_USER_STORAGE_SQL_I.update_user_roles
2015-07-16 20:22:20 +02:00
47573a1950
Added permissions "$action any node" , "$action own node" for now.
2015-07-16 20:03:07 +02:00
jvelilla
2d5f985037
Merge branch 'ewf_v1' of https://github.com/EiffelWebFramework/ROC into ewf_v1
2015-07-16 13:03:18 -03:00
jvelilla
eff3552ea1
Updated block new password using Request instead of Require.
2015-07-16 13:01:53 -03:00
43b8c52d34
Merge remote-tracking branch 'ewf/ewf_v1' into ewf_v1
2015-07-16 17:18:58 +02:00
d8ac46f8b0
Added CMS_NODE.is_published and is_trashed: BOOLEAN
...
For now, whenever we save a node, it is marked as published.
Display a node only if published.
Updated /trash page.
Updated /nodes/ page to take into account the node status.
2015-07-16 17:16:35 +02:00
jvelilla
91f1a87b83
Added HTML5 validations.
...
Add required to input title.
Added pattern to path alias with the following regex ^([A-Za-z0-9-_+ ]).+
2015-07-16 11:38:38 -03:00
769c14caf8
Display the OAuth association only in "account" page.
...
Improved the template to show only when pertinent.
2015-07-16 15:49:14 +02:00
3c0122d98f
Fixed validation of node path alias field, for node creation.
...
Now,when installation a module, store the version (instead of just "yes")
2015-07-16 15:23:56 +02:00
jvelilla
77487e90f3
Added account block to link and unlink with Oauth
...
Updated CMS_OAUTH_20_MODULE, to handle account_info, block
2015-07-15 13:22:19 -03:00
jvelilla
5d498c0bf2
Merge branch 'ewf_v1' of https://github.com/EiffelWebFramework/ROC into ewf_v1
2015-07-15 12:25:34 -03:00
jvelilla
e42a7636ae
Updated Account Info
...
Add Link and Unlink account with OAuth.
2015-07-15 12:24:56 -03:00
f55a52e4d0
Added CMS_USER_API.save_user_role (a_user_role)
2015-07-14 19:52:39 +02:00
2040a746dd
Cleaned auth module by removing useless code.
...
Added CMS_USER_API.user_role_by_name (a_name: READABLE_STRING_GENERAL): detachable CMS_USER_ROLE
Added enabled/disabled status in admin/install.
2015-07-14 18:59:09 +02:00
jvelilla
d4fc9f9411
Updated account info, using a to link users to login form.
...
Removed unneeded file.
2015-07-14 13:08:43 -03:00
jvelilla
bba504df53
Updated Account info:
...
If user is not logged in, show a login option.
Updated New Password
Added option to request a new password using username.
Updated templates to use {$site_url}
2015-07-14 10:58:16 -03:00
5688cffcf1
Fixed wrong error report for path alias validation.
2015-07-14 12:47:59 +02:00
19e8607e54
Removed unused local variable
...
Use new location for http_authorization library.
Added error_handler in CMS_MODULE_API (and thus all modules).
Better error handling in CMS_USER_API.
2015-07-14 12:20:43 +02:00
2d77bf6de8
Fixed change_password block template.
2015-07-13 18:48:06 +02:00
2d985ba05e
Merge remote-tracking branch 'jvelilla/roc_account' into ewf_v1
2015-07-13 18:43:07 +02:00
1b0cc9dc07
Moved initialization from CMS_DEFAULT_SETUP to CMS_SETUP.initialize.
...
Rely on setup "admin.installation_access" to determine who has access to /admin/install .
2015-07-13 18:42:16 +02:00
jvelilla
0164c6ec6d
Updated Account Info based on review.
...
Updated Account info with change password form.
2015-07-13 10:25:18 -03:00
jvelilla
2fe2a7f864
Merge branch 'ewf_v1' of https://github.com/EiffelWebFramework/ROC into roc_account
2015-07-13 08:54:50 -03:00
3dec559d58
Process modules installation only for /admin/install request.
...
This makes installation process safer, and controlled.
2015-07-11 15:39:59 +02:00
jvelilla
dce3f71be9
Added account info, shows basic user info, logout based on login strategy.
...
Clean block_login.
2015-07-10 15:41:39 -03:00
3ea9e36e7c
Updated comments.
2015-07-10 19:08:29 +02:00
5da01fd576
Fixed issue with CMS_USER_STORAGE_SQL_I.update_user which was passing useless parameters.
2015-07-10 18:57:56 +02:00
7f4a7b3ab9
Implemented Module enable/disable setting from configuration.
...
Implemented dependencies checking to set CMS_MODULE.is_enabled.
Implemented the persistence of CMS_USER.roles
2015-07-10 18:46:16 +02:00
779064a505
In SQL statement use the same case for table names, i.e all lowercase.
...
Otherwise on Linux+MySQL queries may fail.
2015-07-10 12:58:05 +02:00
5477bab83c
Added error handler argument in CMS_STORAGE_BUILDER.storage (...) function.
...
Removed testing purpose code.
Update debug module.
2015-07-10 12:20:28 +02:00
d24f124e42
Fixed typo in renamed features.
2015-07-09 21:31:09 +02:00
bace9657b4
Search module configuration first in site/config/modules/$module_name/ folder to see if default is overriden,
...
and then in site/modules/$module_name/config/ folder.
2015-07-09 21:29:35 +02:00
6319d46f26
Added back CMS_FORMATS.filtered_html
2015-07-09 13:47:22 +02:00
31095b1b66
Merged formats, from CMS_NODE_API and CMS_API, into CMS_API.formats: CMS_FORMATS.
2015-07-09 13:41:42 +02:00
16cae0047d
Revisited the format, filter and content type integration.
...
Now, all formats used by CMS are instances of CMS_FORMAT, mainly to prepare the admin section in order to define format by config/database.
CMS_NODE_API provides all queries to access the content types, and formats, this way a module can easily alter the formats by adding a new filter.
TODO: see how to integrate permission checking, to control who can use a specific format (such as full HTML).
2015-07-09 12:23:20 +02:00
85cff0b139
Better implementation of CMS_API.source_of_path_alias (a_alias).
...
That now returns the path, only if the alias exists, otherwise returns Void.
Improved path alias validation.
2015-07-07 17:40:12 +02:00
cc94c59eed
Added CMS_USER.utf_8_name: STRING_8 for convenience.
...
Added a permission check for registering (TODO: by default allow visitor to register).
Cosmetic.
2015-07-07 17:25:56 +02:00