Commit graph

3161 commits

Author SHA1 Message Date
moodler
1845f8b80e Revamped require_login() function to handle roles better. 2006-09-12 09:31:23 +00:00
moodler
b1ce7811ad Fixed MDL-6479 by adding two block columns on admin pages.
Also we now hide the blocks and headers completely until $SITE is properly
defined.
2006-09-12 09:22:27 +00:00
toyomoyo
ae9e4c064e replacing iscreator() calls with capabilty 2006-09-12 08:56:10 +00:00
vyshane
f7cf2f8efd Fixed bug preventing capability upgrades for blocks. Typo :( 2006-09-12 08:25:03 +00:00
moodler
0ad8c7850d Reload default guest 2006-09-12 08:17:33 +00:00
moodler
b0f5523038 Missed one capability for guests 2006-09-12 08:15:07 +00:00
toyomoyo
ab5c904411 added function get_role_users - returns all users assigned this role in this context (or higher) not very useful for participants list because of the count and paging. Could possibly expand it 2006-09-12 07:37:23 +00:00
moodler
8d158ed44f Reload the guest role using new defaults 2006-09-12 07:10:49 +00:00
moodler
2e85fffeb1 FIxed some typos and other logic related to assign_capabilities 2006-09-12 07:07:30 +00:00
vyshane
93b7e8d3a7 Fake constructor for PHP5 2006-09-12 06:58:42 +00:00
vyshane
23973f1856 Modified to support Roles. 2006-09-12 06:57:05 +00:00
moodler
e7876c1e34 Added new load_guest_role() for guest access, and made assign_capability()
smarter about pre-existing capabilities (new param allows overwriting or not)
2006-09-12 06:15:33 +00:00
toyomoyo
b277dd0a53 adding new table for keeping track of user's last access time for any course page 2006-09-12 06:08:57 +00:00
moodler
00adf177ad Changed some default permissions for the guest role 2006-09-12 05:58:42 +00:00
skodak
6ec7ca0f07 fixed handling of selected language in installer; fixed selection of session language 2006-09-11 20:41:49 +00:00
skodak
2b156ffbf3 old admin block not added into frontpage during installation anymore, it is not removed during upgrade. 2006-09-11 20:05:31 +00:00
toyomoyo
1c45e42e3c adding capabilities 2006-09-11 08:56:23 +00:00
moodler
4ae6d4115f New hook for Moodle 1.7 enrolment plugins 2006-09-11 07:09:41 +00:00
skodak
3435f39bab validate local redirection actions in jumpto.php SC#310 2006-09-11 06:47:38 +00:00
vinkmar
c235598d6a Added feature from MDL-6439. A validate method is now supported for admin_configtext objects, and paramtype can now be a regex to validate against. 2006-09-11 05:06:38 +00:00
skodak
aa893d6b76 fixed several bogus errors and warnings during installation and upgrades, forced logout when upgrading from 1.6 2006-09-10 21:10:48 +00:00
stronk7
2ebd596764 Avoid one minor error when tables hasn't comments to be defined. 2006-09-10 21:05:55 +00:00
skodak
e46c09873a fixed warning during initial install when creating admin roles 2006-09-10 20:29:44 +00:00
stronk7
83a78d9d17 PHPDoc update. 2006-09-10 18:37:57 +00:00
stronk7
b8359f7965 Adding options for continue and feedback to all the DDL functions. 2006-09-10 18:36:50 +00:00
moodler
613bbd7c2b Moving deprecated functions out of datalib.php
Many of these still need updating to remove all dependence on user_xxx tables
2006-09-10 07:07:52 +00:00
stronk7
d6745c7087 Now we are using the new sql_order_by_text() function
when we need to be able to order by TEXT columns in a
cross-db behaviour. More info:
http://docs.moodle.org/en/XMLDB_Problems#ORDER_BY_text_columns
2006-09-09 13:53:52 +00:00
stronk7
5f45d2ae80 New function sql_order_by_text() to automatically build
custom expresions to being used in ORDER BY clauses with
TEXT columns.
2006-09-09 13:51:40 +00:00
stronk7
ccfc5ecca1 Only send contexts to cache if the aren't empty. At initial installations
some empty contexts were being cached and used later, causing insertion
of null values to every DB but MySQL.
2006-09-08 19:28:03 +00:00
toyomoyo
51792df056 adding capabilities 2006-09-08 08:46:26 +00:00
vyshane
46943f7b78 Seems that the unassign_capability function signature was changed without updating the call to that function in capabilities_cleanup(). Fixed. 2006-09-08 02:33:02 +00:00
stronk7
e20d180c11 DIRTY HACK to convert back all the ' ' (1 space) field contents
back to '' (empty string) in order to allow Oracle to work, more
or less until all the not real NOT NULL DEFAULT '' fields were out!

TODO: Apply the same hack to some more functions...
2006-09-07 23:48:48 +00:00
stronk7
42ac3ecffc Solving one string concatenation typo (please, test it's ok) and
stripping the AS keyword from table aliases. You cand find more at:
http://docs.moodle.org/en/XMLDB_Problems#Table_and_column_aliases_-_the_AS_keyword
2006-09-07 20:17:46 +00:00
skodak
42d6be31d1 double redirect prevention - if both 'meta http-equiv' and javascript redirects are used, javascript delay is 3 seconds longer to prevent accidental double redirects. The target page can still be loaded twice in case user clicks the link before the target page gets fully loaded. 2006-09-07 19:40:57 +00:00
stronk7
3a8c55c3fb Typos + drop table fully supported. 2006-09-07 18:39:43 +00:00
stronk7
8830218f53 Initial support for DROP TABLE adedd. 2006-09-07 17:28:46 +00:00
nfreear
22a3b7ccef Fixes bug MDL-6478 "Unit tests (not) working.." 2006-09-07 09:11:55 +00:00
toyomoyo
ec7a8b7999 adding capabilities 2006-09-07 08:57:56 +00:00
moodler
f43ce1ad1d Added moodle/role:unassignself which replaces $CFG->allowunenroll 2006-09-07 08:35:30 +00:00
stronk7
05a43ba36c Initial RenameTable caller to generators. Not ended by I needed it in CVS now. 2006-09-06 23:05:12 +00:00
stronk7
d05babe913 Initial, unfinished, not working, simple version of rename_table generator.
More coming soon, but I needed it in CVS now!
2006-09-06 23:04:13 +00:00
stronk7
aed4e52713 Now indexes are able to return their PHP specs. 2006-09-06 19:47:50 +00:00
stronk7
989a41af6f Now keys are able to return their PHP specs. 2006-09-06 19:43:38 +00:00
stronk7
7b31a94e08 Now fields are able to return their PHP specs. 2006-09-06 19:31:03 +00:00
toyomoyo
d02eededf7 adding capabilities 2006-09-06 08:55:23 +00:00
moodler
d4649c76cc Removed some tabs 2006-09-06 01:43:54 +00:00
skodak
c3768dfc70 testing forced conversion to proper numeric type in _adodb_column_sql() SC#259 2006-09-05 23:59:25 +00:00
stronk7
3c4f35e645 Mark as deprecated the sql_paging_limit_function() 2006-09-05 21:42:20 +00:00
stronk7
93a89227fd One less use of old LIMIT clause. Now logs are working properly. 2006-09-05 21:40:17 +00:00
skodak
dbe7e58274 I spent 2 hours looking for this typo :-D 2006-09-05 20:45:57 +00:00